-
Notifications
You must be signed in to change notification settings - Fork 1
Gecko AI
The system is a mix of YAML definitions and (slightly modified) YJASL (Yet Just Another Scripting Language) scripts.
Reference: http://yjasl.sourceforge.net/yjasl.php
By using a (currently) very buggy preprocessor, I have added support for 'object' function calls.
Aka, for example, it will convert Engine::Player->Name into Engine::Player.getName(Engine::Player)
Currently, make sure, when assigning, that you dont have " in the string afterwards (except to assign 1 non concat string) - Known bug!
Prints 'message' to the debug log.
Stores a reference to the bot's Player object.
Stores a reference to the bot's PlayerActor object.
The Actor namespace contains Player related functions
The Actor namespace contains Actor related functions
Moves the specified (try) to location x, y.
- Return 1 on success, otherwise 0
The Brain namespace contains Brain (Actor-specific AI) related functions
Clears the assigned Brain for the specified actor
Assigns the given brain_id to the spcified actor. Make sure that the "Brains" namespace has the required mapped functions that you need.
- Returns the created ScriptedBrain object
The Order namespace contains Order related functions
The Type (Type::*) namespace is a special case, meant to collect alot of utility functions (like Type::getX(int2) to get the X from an int2.
Should mostly not be called directly, but used (with for example: actor->Location->X)
Usually OpenRA objects are 'wrapped' into a custom YJASL table. These are the 'possible' object 'types'