/home/orm/Projects/moji/src/GlobalFunctions.h

00001 
00002 #ifndef GLOBALFUNCTIONS_H
00003 #define GLOBALFUNCTIONS_H
00004 
00005 #include <string>
00006 #include "script/scriptstring.h"
00007 
00020 void Print(std::string& s);
00021 
00027 void Println(std::string& s);
00028 
00029 /*
00030  * @brief <b>[AS - void PlayAnimation(string@,bool)]</b>
00031  *
00032  * Plays an animation, either looped or not.
00033  */
00034 //void ANIM_PlayAnimation(std::string& animation,bool loop);
00040 void ANIM_Play(bool loop);
00041 
00047 void ANIM_SetFrame(int frame);
00048 
00054 void ANIM_StepFrame();
00055 
00061 void ANIM_SetLooped(bool val);
00062 
00068 void  CHAR_SetAnimation(std::string& animation);
00069 
00075 void  CHAR_SetState(std::string& state);
00076 
00082 int   CHAR_ReadUserInt(std::string& key);
00083 
00089 float CHAR_ReadUserFloat(std::string& key);
00090 
00096 CScriptString*  CHAR_ReadUserString(std::string& key);
00097 
00103 bool  CHAR_WriteUserInt(std::string& key,int value);
00104 
00110 bool  CHAR_WriteUserFloat(std::string& key,float value);
00111 
00117 bool  CHAR_WriteUserString(std::string& key,std::string& value);
00118 
00124 int  CHAR_GetX();
00125 
00131 int  CHAR_GetY();
00132 
00138 void CHAR_SetX(int val);
00139 
00145 void CHAR_SetY(int val);
00146 
00152 int  CHAR_GetXSpeed();
00153 
00159 int  CHAR_GetYSpeed();
00160 
00166 void CHAR_SetXSpeed(int val);
00167 
00173 void CHAR_SpawnSecondaryChar(std::string& character,std::string& handle){}
00174 
00180 void CHAR_SetYSpeed(int val);
00181 
00187 void STATE_PushTask(asIScriptObject* task);
00188 
00194 void STATE_PopTask();
00195 
00201 CScriptString* STATE_CurrentTaskType();
00202 
00203 /*
00204  */
00205 
00206 
00352 #endif // GLOBALFUNCTIONS_H
 All Data Structures Functions