|
| CRobotMain () |
| Constructor of robot application. More...
|
|
virtual | ~CRobotMain () |
| Destructor of robot application. More...
|
|
Gfx::CCamera * | GetCamera () |
|
Gfx::CTerrain * | GetTerrain () |
|
Ui::CInterface * | GetInterface () |
|
Ui::CDisplayText * | GetDisplayText () |
|
CPauseManager * | GetPauseManager () |
|
void | ChangePhase (Phase phase) |
| Changes phase. More...
|
|
bool | ProcessEvent (Event &event) |
| Processes an event. More...
|
|
Phase | GetPhase () |
|
bool | CreateShortcuts () |
| Creates interface shortcuts to the units. More...
|
|
void | ScenePerso () |
| Load the scene for the character. More...
|
|
void | SetMovieLock (bool lock) |
| Management of the lock mode for movies. More...
|
|
bool | GetMovieLock () |
|
bool | GetInfoLock () |
|
void | SetSatComLock (bool lock) |
| Management of the blocking of the call of SatCom. More...
|
|
bool | GetSatComLock () |
|
void | SetEditLock (bool lock, bool edit) |
| Management of the lock mode for the edition. More...
|
|
bool | GetEditLock () |
|
void | SetEditFull (bool full) |
| Management of the fullscreen mode during editing. More...
|
|
bool | GetEditFull () |
|
void | SetFriendAim (bool friendAim) |
| Indicates whether mouse is on an friend object, on which we should not shoot. More...
|
|
bool | GetFriendAim () |
|
void | SetSpeed (float speed) |
| Changes game speed. More...
|
|
float | GetSpeed () |
|
void | UpdateShortcuts () |
| Updates all the shortcuts. More...
|
|
void | SelectHuman () |
| Selects the human. More...
|
|
CObject * | SearchHuman () |
| Returns the object human. More...
|
|
CObject * | SearchToto () |
| Returns the object toto. More...
|
|
CObject * | SearchNearest (Math::Vector pos, CObject *exclu) |
| Returns the nearest selectable object from a given position. More...
|
|
bool | SelectObject (CObject *obj, bool displayError=true) |
| Selects the object aimed by the mouse. More...
|
|
CObject * | GetSelectObject () |
| Returns the object that default was select after the creation of a scene. More...
|
|
CObject * | DeselectAll () |
| Deselects everything, and returns the object that was selected. More...
|
|
void | ResetObject () |
| Resets all objects to their original position. More...
|
|
void | UpdateAudio (bool frame) |
| Updates the audiotracks. More...
|
|
void | SetMissionResultFromScript (Error result, float delay) |
| Set mission result from LevelController script. More...
|
|
Error | CheckEndMission (bool frame) |
| Checks if the mission is over. More...
|
|
Error | ProcessEndMissionTake () |
|
Error | ProcessEndMissionTakeForGroup (std::vector< CSceneEndCondition * > &endTakes) |
|
const std::map< std::string, MinMax > & | GetObligatoryTokenList () |
| Returns the list instructions required in CBot program in level. More...
|
|
void | UpdateMap () |
| Updates the map. More...
|
|
bool | GetShowMap () |
| Indicates whether the mini-map is visible. More...
|
|
MainMovieType | GetMainMovie () |
| Returns the type of current movie. More...
|
|
void | FlushDisplayInfo () |
| Clears the display of instructions. More...
|
|
void | StartDisplayInfo (int index, bool movie) |
|
void | StartDisplayInfo (const std::string &filename, int index) |
| Beginning of the displaying of instructions. More...
|
|
void | StopDisplayInfo () |
| End of displaying of instructions. More...
|
|
char * | GetDisplayInfoName (int index) |
| Returns the name of the text display. More...
|
|
void | StartSuspend () |
| Beginning of a dialogue during the game. More...
|
|
void | StopSuspend () |
| End of dialogue during the game. More...
|
|
float | GetGameTime () |
| Returns the absolute time of the game. More...
|
|
const std::string & | GetScriptName () |
|
const std::string & | GetScriptFile () |
|
bool | GetTrainerPilot () |
| Indicates whether it is possible to control a driving robot. More...
|
|
bool | GetFixScene () |
| Indicates whether the scene is fixed, without interaction. More...
|
|
bool | GetShowSoluce () |
|
bool | GetSceneSoluce () |
|
bool | GetShowAll () |
|
bool | GetRadar () |
|
MissionType | GetMissionType () |
|
int | GetGamerFace () |
| Returns the representation to use for the player. More...
|
|
int | GetGamerGlasses () |
| Returns the representation to use for the player. More...
|
|
bool | GetGamerOnlyHead () |
| Returns the mode with just the head. More...
|
|
float | GetPersoAngle () |
| Returns the angle of presentation. More...
|
|
void | SetLevel (LevelCategory cat, int chap, int rank) |
|
LevelCategory | GetLevelCategory () |
|
int | GetLevelChap () |
|
int | GetLevelRank () |
|
std::string | GetCustomLevelDir () |
| Returns folder name of the scene that user selected to play. More...
|
|
void | SetReadScene (std::string path) |
|
void | UpdateChapterPassed () |
|
void | StartMusic () |
| Starts music with a mission. More...
|
|
void | UpdatePause (PauseType pause) |
|
void | UpdatePauseMusic (PauseMusic music) |
|
void | ClearInterface () |
| Removes hilite and tooltip. More...
|
|
void | ChangeColor () |
| Change the colors and textures. More...
|
|
float | SearchNearestObject (Math::Vector center, CObject *exclu) |
| Calculates the distance to the nearest object. More...
|
|
bool | FreeSpace (Math::Vector ¢er, float minRadius, float maxRadius, float space, CObject *exclu) |
| Calculates a free space. More...
|
|
bool | FlatFreeSpace (Math::Vector ¢er, float minFlat, float minRadius, float maxRadius, float space, CObject *exclu) |
| Calculates a flat free space. More...
|
|
float | GetFlatZoneRadius (Math::Vector center, float maxRadius, CObject *exclu) |
| Calculates the maximum radius of a free space. More...
|
|
void | HideDropZone (CObject *metal) |
| Hides buildable area when a cube of metal is taken up. More...
|
|
void | ShowDropZone (CObject *metal, CObject *transporter) |
| Shows the buildable area when a cube of metal is deposited. More...
|
|
void | FlushShowLimit (int i) |
| Erases the boundaries shown. More...
|
|
void | SetShowLimit (int i, Gfx::ParticleType parti, CObject *obj, Math::Vector pos, float radius, float duration=SHOWLIMITTIME) |
| Specifies the boundaries to show. More...
|
|
void | StartShowLimit () |
| Mount the boundaries of the selected object. More...
|
|
void | FrameShowLimit (float rTime) |
| Advances the boundaries shown. More...
|
|
void | SaveAllScript () |
| Saves all programs of all the robots. More...
|
|
void | SaveOneScript (CObject *obj) |
| Saves all programs of the robot. More...
|
|
bool | SaveFileStack (CObject *obj, FILE *file, int objRank) |
| Saves the stack of the program in execution of a robot. More...
|
|
bool | ReadFileStack (CObject *obj, FILE *file, int objRank) |
| Resumes the execution stack of the program in a robot. More...
|
|
void | FlushNewScriptName () |
| Empty the list. More...
|
|
void | AddNewScriptName (ObjectType type, const std::string &name) |
| Adds a script name. More...
|
|
std::string | GetNewScriptName (ObjectType type, int rank) |
| Seeks a script name for a given type. More...
|
|
void | SelectPlayer (std::string playerName) |
| Changes current player. More...
|
|
CPlayerProfile * | GetPlayerProfile () |
|
bool | IOIsBusy () |
| Seeks if an object occupies in a spot, to prevent a backup of the game. More...
|
|
bool | IOWriteScene (std::string filename, std::string filecbot, std::string filescreenshot, const std::string &info, bool emergencySave=false) |
| Saves the current game. More...
|
|
void | IOWriteSceneFinished () |
| Notifies the user that scene write is finished. More...
|
|
CObject * | IOReadScene (std::string filename, std::string filecbot) |
| Resumes some part of the game. More...
|
|
void | IOWriteObject (CLevelParserLine *line, CObject *obj, const std::string &programDir, int objRank) |
| Writes an object into the backup file. More...
|
|
CObject * | IOReadObject (CLevelParserLine *line, const std::string &programDir, const std::string &objCounterText, float objectProgress, int objRank=-1) |
| Resumes the game. More...
|
|
int | CreateSpot (Math::Vector pos, Gfx::Color color) |
| Creates a light spot. More...
|
|
CObject * | GetSelect () |
| Returns the selected object. More...
|
|
void | DisplayError (Error err, CObject *pObj, float time=10.0f) |
|
void | DisplayError (Error err, Math::Vector goal, float height=15.0f, float dist=60.0f, float time=10.0f) |
|
void | UpdateCustomLevelList () |
|
std::string | GetCustomLevelName (int id) |
|
const std::vector< std::string > & | GetCustomLevelList () |
|
bool | IsLoading () |
| Returns true if the game is on the loading screen. More...
|
|
void | StartMissionTimer () |
|
void | SetAutosave (bool enable) |
|
bool | GetAutosave () |
|
void | SetAutosaveInterval (int interval) |
|
int | GetAutosaveInterval () |
|
void | SetAutosaveSlots (int slots) |
|
int | GetAutosaveSlots () |
|
void | SetExitAfterMission (bool exit) |
| Enable mode where completing mission closes the game. More...
|
|
bool | CanPlayerInteract () |
| Returns true if player can interact with things manually. More...
|
|
const std::string & | GetTeamName (int id) |
| Returns team name for the given team id. More...
|
|
bool | IsTeamColorDefined (int id) |
| Returns true if team-specific colored texture is available. More...
|
|
bool | IsResearchEnabled (ResearchType type) |
| Returns true if the given research is enabled. More...
|
|
bool | IsResearchDone (ResearchType type, int team) |
| Returns true if the given research is done. More...
|
|
void | MarkResearchDone (ResearchType type, int team) |
| Marks research as done. More...
|
|
void | RemoveFromSelectionHistory (CObject *object) |
|
float | GetGlobalMagnifyDamage () |
| Returns global magnifyDamage setting. More...
|
|
void | StartDetectEffect (COldObject *object, CObject *target) |
|
bool | IsSelectable (CObject *obj) |
| Indicates whether an object is selectable. More...
|
|
void | SetDebugCrashSpheres (bool draw) |
|
bool | GetDebugCrashSpheres () |
|
|
int | GetEnableBuild () |
| Get/set enabled buildings. More...
|
|
void | SetEnableBuild (int enableBuild) |
|
|
int | GetEnableResearch () |
| Get/set enabled researches. More...
|
|
void | SetEnableResearch (int enableResearch) |
|
|
int | GetDoneResearch (int team) |
| Get/set done researches. More...
|
|
void | SetDoneResearch (int doneResearch, int team) |
|
|
bool | IsBuildingEnabled (BuildType type) |
| Returns true if the given building is enabled. More...
|
|
bool | IsBuildingEnabled (ObjectType type) |
|
|
bool | CanBuild (ObjectType type, int team) |
| Retruns true if all requirements to build this object are met (EnableBuild + DoneResearch) More...
|
|
Error | CanBuildError (ObjectType type, int team) |
|
|
bool | CanFactory (ObjectType type, int team) |
| Retruns true if all requirements to create this object in BotFactory are met (DoneResearch) More...
|
|
Error | CanFactoryError (ObjectType type, int team) |
|
|
CApplication * | m_app = nullptr |
|
CEventQueue * | m_eventQueue = nullptr |
|
Gfx::CEngine * | m_engine = nullptr |
|
Gfx::CParticle * | m_particle = nullptr |
|
Gfx::CWater * | m_water = nullptr |
|
Gfx::CCloud * | m_cloud = nullptr |
|
Gfx::CLightning * | m_lightning = nullptr |
|
Gfx::CPlanet * | m_planet = nullptr |
|
Gfx::COldModelManager * | m_oldModelManager = nullptr |
|
Gfx::CLightManager * | m_lightMan = nullptr |
|
CSoundInterface * | m_sound = nullptr |
|
CInput * | m_input = nullptr |
|
std::unique_ptr< CObjectManager > | m_objMan |
|
std::unique_ptr< CMainMovie > | m_movie |
|
std::unique_ptr< CPauseManager > | m_pause |
|
std::unique_ptr< Gfx::CModelManager > | m_modelManager |
|
std::unique_ptr< Gfx::CTerrain > | m_terrain |
|
std::unique_ptr< Gfx::CCamera > | m_camera |
|
std::unique_ptr< Ui::CMainUserInterface > | m_ui |
|
std::unique_ptr< Ui::CMainShort > | m_short |
|
std::unique_ptr< Ui::CMainMap > | m_map |
|
std::unique_ptr< Ui::CInterface > | m_interface |
|
std::unique_ptr< Ui::CDisplayInfo > | m_displayInfo |
|
std::unique_ptr< Ui::CDisplayText > | m_displayText |
|
std::unique_ptr< Ui::CDebugMenu > | m_debugMenu |
|
std::unique_ptr< CSettings > | m_settings |
|
std::unique_ptr< CPlayerProfile > | m_playerProfile |
| Progress of loaded player. More...
|
|
float | m_time = 0.0f |
| Time since level start, including pause and intro movie. More...
|
|
float | m_gameTime = 0.0f |
| Playing time since level start. More...
|
|
float | m_gameTimeAbsolute = 0.0f |
| Playing time since level start, not dependent on simulation speed. More...
|
|
LevelCategory | m_levelCategory |
|
int | m_levelChap = 0 |
|
int | m_levelRank = 0 |
|
std::string | m_levelFile = "" |
| if set, loads this file instead of building from category/chap/rank More...
|
|
std::string | m_sceneReadPath |
|
float | m_winDelay = 0.0f |
|
float | m_lostDelay = 0.0f |
|
bool | m_fixScene = false |
|
CObject * | m_base = nullptr |
|
CObject * | m_selectObject = nullptr |
|
Phase | m_phase = PHASE_WELCOME1 |
|
ActivePause * | m_userPause = nullptr |
|
ActivePause * | m_focusPause = nullptr |
|
ActivePause * | m_freePhotoPause = nullptr |
|
bool | m_cmdEdit = false |
|
ActivePause * | m_cmdEditPause = nullptr |
|
bool | m_selectInsect = false |
|
bool | m_showSoluce = false |
|
bool | m_showAll = false |
|
bool | m_cheatRadar = false |
|
bool | m_shortCut = false |
|
std::string | m_audioTrack |
|
bool | m_audioRepeat = false |
|
std::string | m_satcomTrack |
|
bool | m_satcomRepeat = false |
|
std::string | m_editorTrack |
|
bool | m_editorRepeat = false |
|
int | m_movieInfoIndex = 0 |
|
CObject * | m_controller = nullptr |
|
MissionType | m_missionType = MISSION_NORMAL |
|
bool | m_immediatSatCom = false |
|
bool | m_beginSatCom = false |
|
bool | m_lockedSatCom = false |
|
bool | m_movieLock = false |
|
bool | m_satComLock = false |
|
bool | m_editLock = false |
|
bool | m_editFull = false |
|
bool | m_hilite = false |
|
bool | m_trainerPilot = false |
|
bool | m_friendAim = false |
|
bool | m_resetCreate = false |
|
bool | m_mapShow = false |
|
bool | m_mapImage = false |
|
char | m_mapFilename [100] = {} |
|
ActivePause * | m_suspend = nullptr |
|
Math::Point | m_tooltipPos |
|
std::string | m_tooltipName |
|
float | m_tooltipTime = 0.0f |
|
char | m_infoFilename [SATCOM_MAX][100] = {} |
|
CObject * | m_infoObject = nullptr |
|
int | m_infoUsed = 0 |
|
ActivePause * | m_satcomMoviePause = nullptr |
|
std::string | m_scriptName = "" |
|
std::string | m_scriptFile = "" |
|
std::string | m_endingWin = "" |
|
std::string | m_endingLost = "" |
|
bool | m_winTerminate = false |
|
float | m_globalMagnifyDamage = 0.0f |
|
bool | m_exitAfterMission = false |
|
bool | m_codeBattleInit = false |
|
bool | m_codeBattleStarted = false |
|
bool | m_codeBattleSpectator = true |
| Code battle spectator mode, hides object UI, changes camera to CAM_TYPE_PLANE and allows for switching to free camera by clicking outside of any object. More...
|
|
std::map< int, std::string > | m_teamNames |
|
std::vector< NewScriptName > | m_newScriptName |
|
EventType | m_visitLast = EVENT_NULL |
|
CObject * | m_visitObject = nullptr |
|
CObject * | m_visitArrow = nullptr |
|
float | m_visitTime = 0.0f |
|
float | m_visitParticle = 0.0f |
|
Math::Vector | m_visitPos |
|
Math::Vector | m_visitPosArrow |
|
ActivePause * | m_visitPause = nullptr |
|
std::vector< std::unique_ptr< CSceneEndCondition > > | m_endTake |
|
bool | m_endTakeImmediat = false |
| If true, the mission ends immediately after completing the requirements without requiring SpaceShip takeoff. More...
|
|
long | m_endTakeResearch = 0 |
|
float | m_endTakeWinDelay = 0.0f |
|
float | m_endTakeLostDelay = 0.0f |
|
std::vector< std::unique_ptr< CAudioChangeCondition > > | m_audioChange |
|
std::map< std::string, MinMax > | m_obligatoryTokens |
|
int | m_build = 0 |
| Enabled buildings. More...
|
|
long | m_researchEnable = 0 |
| Available researches. More...
|
|
std::map< int, int > | m_researchDone |
| Done researches for each team. More...
|
|
Error | m_missionResult = ERR_OK |
|
bool | m_missionResultFromScript = false |
| true if m_missionResult has been set by LevelController script, this disables normal EndMissionTake processing More...
|
|
ShowLimit | m_showLimit [MAXSHOWLIMIT] |
|
std::map< int, Gfx::Color > | m_colorNewBot |
|
Gfx::Color | m_colorNewAlien |
|
Gfx::Color | m_colorNewGreen |
|
Gfx::Color | m_colorNewWater |
|
float | m_colorShiftWater = 0.0f |
|
bool | m_missionTimerEnabled = false |
|
bool | m_missionTimerStarted = false |
|
float | m_missionTimer = 0.0f |
|
bool | m_autosave = false |
|
int | m_autosaveInterval = 0 |
|
int | m_autosaveSlots = 0 |
|
float | m_autosaveLast = 0.0f |
|
int | m_shotSaving = 0 |
|
std::deque< CObject * > | m_selectionHistory |
|
bool | m_debugCrashSpheres |
|