Table of Contents:
Global Functions
These functions are always avalible to all scripts, no includes required.print Functions: ---------------- >> These functions provide a way to print information to the terminal. > If you are not running the debug executable, then the contents of the > terminal will be dumped to a log file: log.txt in the same directory > as the executable. void print( const string@ ); void print( const char ); void print( const int8 ); void print( const int16 ); void print( const int32 ); void print( const uint8 ); void print( const uint16 ); void print( const uint32 ); void print( const float ); void print( const double ); getInput: --------- >> This function allows you to grab a single character of > input from the terminal. > NOTE: You must be running the Debug executable to use this > properly! And it should never be included in a Script you > intend to release to others! char getInput(); Math Functions: --------------- >> Most of the basic math functions you should need are provided > for you. float cos(float rad); float sin(float rad); float tan(float rad); float acos(float val); float asin(float val); float atan(float val); float cosh(float rad); float sinh(float rad); float tanh(float rad); float log(float val); float log10(float val); float pow(float val, float exp); float sqrt(float val); float ceil(float val); float abs(float val); float floor(float val); float fraction(float val);
Script Classes
How to read this section: -------- Classes: -------- Classes indicate their inheritence using ':' There fore the class A: class A : B A is guaranteed to have all of the methods and members of Class B. ------ Types: ------ Value- Script Classes may declare varriables of these types and hold onto them as they wish Refrence- Script Classes may hold Object Handles to Classes of this type No Instance- Script Classes may not ever create their own instances of Classes of this type ------- Groups: ------- Common - Classes that may be used in both the Common Turret scripts as well as the Client Turret scripts Client - Classes that may only be used in the Client Turret scripts
IdList
>> Vector which stores World Ids.
>> Vector which stores World Ids.
Clock
>> This class is used to time things.
>> This class is used to time things.
Vector2d
>> This class is to store and manipulate and ordered pair of coordinates.
>> This class is to store and manipulate and ordered pair of coordinates.
World
>> This is the main class that stores everything about the game world.
>> This is the main class that stores everything about the game world.
WorldClient
>> The Client's view of the world with extra graphics related data.
>> The Client's view of the world with extra graphics related data.
Creep
>> The class that represents all Creeps.
>> The class that represents all Creeps.
CreepClient
>> The class that represents all Creeps on the Client.
>> The class that represents all Creeps on the Client.
Turret
>> The class that represents all Turrets.
>> The class that represents all Turrets.
TurretClient
>> The class that represents all Turrets on the Client.
>> The class that represents all Turrets on the Client.
Overlay
>> The class that represents all Graphical overlays.
>> The class that represents all Graphical overlays.
OverlayExplosion
>> An explosion overlay that randomly rotates it's self to look less static.
>> An explosion overlay that randomly rotates it's self to look less static.
OverlaySprite
>> An generic overlay that displays any given image.
>> An generic overlay that displays any given image.
OverlayAnimatedSprite
>> An generic overlay that displays any given images.
>> An generic overlay that displays any given images.