Is it possible in Ruby/RGSS to have a variable which stores the address of a function? (Or a copy of a function itself?)
Purpose being so that when I call the variable, it returns something according to the function it (the variable) holds. I'm programming an AI system, and it would be fantastic if I could write AI scripts/methods and have the appropriate enemies store the methods that concern them (or addresses to those methods).
Purpose being so that when I call the variable, it returns something according to the function it (the variable) holds. I'm programming an AI system, and it would be fantastic if I could write AI scripts/methods and have the appropriate enemies store the methods that concern them (or addresses to those methods).