Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CBrain Class Reference

Public Member Functions

 CBrain (CObject *object)
void DeleteObject (bool bAll=false)
void SetPhysics (CPhysics *physics)
void SetMotion (CMotion *motion)
bool EventProcess (const Event &event)
bool CreateInterface (bool bSelect)
bool Write (char *line)
bool Read (char *line)
bool IsBusy ()
void SetActivity (bool bMode)
bool GetActivity ()
bool IsProgram ()
bool ProgramExist (int rank)
void RunProgram (int rank)
int FreeProgram ()
int GetProgram ()
void StopProgram ()
void StopTask ()
bool IntroduceVirus ()
void SetActiveVirus (bool bActive)
bool GetActiveVirus ()
void SetScriptRun (int rank)
int GetScriptRun ()
void SetScriptName (int rank, char *name)
char * GetScriptName (int rank)
void SetSoluceName (char *name)
char * GetSoluceName ()
bool SendProgram (int rank, const char *buffer)
bool ReadSoluce (char *filename)
bool ReadProgram (int rank, const char *filename)
bool GetCompile (int rank)
bool WriteProgram (int rank, char *filename)
bool ReadStack (FILE *file)
bool WriteStack (FILE *file)
Error StartTaskTake ()
Error StartTaskManip (TaskManipOrder order, TaskManipArm arm)
Error StartTaskFlag (TaskFlagOrder order, int rank)
Error StartTaskBuild (ObjectType type)
Error StartTaskSearch ()
Error StartTaskTerraform ()
Error StartTaskPen (bool bDown, int color)
Error StartTaskRecover ()
Error StartTaskShield (TaskShieldMode mode)
Error StartTaskFire (float delay)
Error StartTaskFireAnt (Math::Vector impact)
Error StartTaskSpiderExplo ()
Error StartTaskGunGoal (float dirV, float dirH)
Error StartTaskReset (Math::Vector goal, Math::Vector angle)
void UpdateInterface (float rTime)
void UpdateInterface ()

Protected Member Functions

bool EventFrame (const Event &event)
void StartEditScript (int rank, char *name)
void StopEditScript (bool bCancel)
Error EndedTask ()
void GroundFlat ()
void ColorFlag (int color)
void UpdateScript (Ui::CWindow *pw)
int GetSelScript ()
void BlinkScript (bool bEnable)
void CheckInterface (Ui::CWindow *pw, EventType event, bool bState)
void EnableInterface (Ui::CWindow *pw, EventType event, bool bState)
void DeadInterface (Ui::CWindow *pw, EventType event, bool bState)
void DefaultEnter (Ui::CWindow *pw, EventType event, bool bState=true)
void TraceRecordStart ()
void TraceRecordFrame ()
void TraceRecordStop ()
bool TraceRecordOper (TraceOper oper, float param)
bool TraceRecordPut (char *buffer, int max, TraceOper oper, float param)

Protected Attributes

Gfx::CEnginem_engine
Gfx::CTerrainm_terrain
Gfx::CWaterm_water
Gfx::CCameram_camera
Gfx::CParticlem_particle
CObjectm_object
CPhysicsm_physics
CMotionm_motion
Ui::CInterfacem_interface
CRobotMainm_main
Ui::CStudiom_studio
CSoundInterfacem_sound
CTaskManagerm_primaryTask
CTaskManagerm_secondaryTask
CScriptm_script [BRAINMAXSCRIPT]
int m_selScript
int m_program
bool m_bActivity
bool m_bBurn
bool m_bActiveVirus
int m_scriptRun
char m_scriptName [BRAINMAXSCRIPT][50]
char m_soluceName [50]
EventType m_buttonAxe
EventType m_manipStyle
EventType m_defaultEnter
EventType m_interfaceEvent [100]
CObjectm_antTarget
CObjectm_beeBullet
float m_beeBulletSpeed
Math::Vector m_startPos
float m_time
float m_burnTime
float m_lastUpdateTime
float m_lastHumanTime
float m_lastSpiderTime
float m_lastWormTime
float m_lastBulletTime
float m_lastAlarmTime
int m_soundChannelAlarm
int m_flagColor
bool m_bTraceRecord
TraceOper m_traceOper
Math::Vector m_tracePos
float m_traceAngle
int m_traceColor
int m_traceRecordIndex
TraceRecordm_traceRecordBuffer

The documentation for this class was generated from the following files: