#include "C4Include.h"
#include "C4ForbidLibraryCompilation.h"
#include "game/C4GameScript.h"
#include "control/C4GameControl.h"
#include "control/C4RoundResults.h"
#include "editor/C4Console.h"
#include "game/C4Application.h"
#include "game/C4GraphicsSystem.h"
#include "game/C4Viewport.h"
#include "graphics/C4GraphicsResource.h"
#include "graphics/C4Shader.h"
#include "gui/C4GameMessage.h"
#include "gui/C4MessageInput.h"
#include "gui/C4MouseControl.h"
#include "gui/C4ScriptGuiWindow.h"
#include "landscape/C4Landscape.h"
#include "landscape/C4PXS.h"
#include "landscape/C4Particles.h"
#include "landscape/C4Sky.h"
#include "landscape/C4Texture.h"
#include "landscape/C4Weather.h"
#include "landscape/fow/C4FoW.h"
#include "object/C4Command.h"
#include "object/C4DefList.h"
#include "object/C4GameObjects.h"
#include "platform/C4GamePadCon.h"
#include "player/C4Player.h"
#include "player/C4PlayerList.h"
#include "script/C4AulDefFunc.h"
Go to the source code of this file.
Classes | |
class | C4ValueCompiler |
class | C4ValueGetCompiler |
struct | PathInfo |
struct | SumPathLength |
Macros | |
#define | F(f) ::AddFunc(p, #f, Fn##f) |
Functions | |
void | MakeAbsCoordinates (C4PropList *_this, int32_t &x, int32_t &y) |
void | MakeAbsCoordinates (C4PropList *_this, long &x, long &y) |
C4Effect ** | FnGetEffectsFor (C4PropList *target) |
long | GetValidOwner (C4PropList *_this, Nillable< long > owner) |
void | AssignController (C4PropList *_this, C4Object *obj) |
C4FindObject * | CreateCriterionsFromPars (C4Value *parameters, C4FindObject **pFOs, C4SortObject **pSOs, const C4Object *context) |
C4String * | GetTextureName (int32_t texture_nr) |
C4Object * | FnPlaceVegetation (C4PropList *_this, C4PropList *Def, long x, long y, long wdt, long hgt, long growth, C4PropList *shape) |
C4Object * | FnPlaceAnimal (C4PropList *_this, C4PropList *Def) |
C4Object * | FnObject (C4PropList *_this, long iNumber) |
template<class T > | |
C4Value | GetValByStdCompiler (const char *strEntry, const char *strSection, int iEntryNr, const T &rFrom) |
bool | SimFlight (C4Real &x, C4Real &y, C4Real &xdir, C4Real &ydir, int32_t iDensityMin, int32_t iDensityMax, int32_t &iIter) |
void | InitGameFunctionMap (C4AulScriptEngine *pEngine) |
Variables | |
C4ScriptConstDef | C4ScriptGameConstMap [] |
C4ScriptFnDef | C4ScriptGameFnMap [] |
struct PathInfo |
Definition at line 2438 of file C4GameScript.cpp.
Class Members | ||
---|---|---|
long | ilen | |
long | ilx | |
long | ily |
#define F | ( | f | ) | ::AddFunc(p, #f, Fn##f) |
void AssignController | ( | C4PropList * | _this, |
C4Object * | obj | ||
) |
Definition at line 190 of file C4GameScript.cpp.
References C4Object::Controller, NO_OWNER, and Object().
C4FindObject* CreateCriterionsFromPars | ( | C4Value * | parameters, |
C4FindObject ** | pFOs, | ||
C4SortObject ** | pSOs, | ||
const C4Object * | context | ||
) |
Definition at line 296 of file C4GameScript.cpp.
References C4AUL_MAX_Par, C4FindObject::CreateByValue(), C4Object::Layer, and C4FindObject::SetSort().
C4Effect** FnGetEffectsFor | ( | C4PropList * | target | ) |
Definition at line 72 of file C4GameScript.cpp.
References GameScript, C4PropList::GetObject(), C4AulScriptEngine::GetPropList(), C4Value::getPropList(), C4Object::pEffects, C4AulScriptEngine::pGlobalEffects, C4GameScriptHost::pScenarioEffects, C4GameScriptHost::ScenPropList, and ScriptEngine.
C4Object* FnObject | ( | C4PropList * | _this, |
long | iNumber | ||
) |
Definition at line 1646 of file C4GameScript.cpp.
References Objects, and C4GameObjects::SafeObjectPointer().
C4Object* FnPlaceAnimal | ( | C4PropList * | _this, |
C4PropList * | Def | ||
) |
Definition at line 964 of file C4GameScript.cpp.
References Game, and C4Game::PlaceAnimal().
C4Object* FnPlaceVegetation | ( | C4PropList * | _this, |
C4PropList * | Def, | ||
long | x, | ||
long | y, | ||
long | wdt, | ||
long | hgt, | ||
long | growth, | ||
C4PropList * | shape | ||
) |
Definition at line 945 of file C4GameScript.cpp.
References C4VPropList(), Game, MakeAbsCoordinates(), C4PropList::New(), and C4Game::PlaceVegetation().
C4String* GetTextureName | ( | int32_t | texture_nr | ) |
Definition at line 503 of file C4GameScript.cpp.
References C4TextureMap::GetEntry(), C4TexMapEntry::GetTextureName(), String(), and TextureMap.
Referenced by C4TextureMap::GetIndex(), C4TextureMap::SaveMap(), and C4TextureMap::StoreMapPalette().
C4Value GetValByStdCompiler | ( | const char * | strEntry, |
const char * | strSection, | ||
int | iEntryNr, | ||
const T & | rFrom | ||
) |
Definition at line 1966 of file C4GameScript.cpp.
References C4VNull, StdCompiler::Decompile(), and C4ValueGetCompiler::getResult().
long GetValidOwner | ( | C4PropList * | _this, |
Nillable< long > | owner | ||
) |
Definition at line 174 of file C4GameScript.cpp.
References C4Object::Controller, Nillable< T >::IsNil(), NO_OWNER, and Object().
void InitGameFunctionMap | ( | C4AulScriptEngine * | pEngine | ) |
Definition at line 3135 of file C4GameScript.cpp.
References AddFunc(), C4ScriptGameConstMap, C4ScriptGameFnMap, C4V_Int, C4VInt(), F, GBackLiquid(), GBackSemiSolid(), GBackSolid(), C4AulScriptEngine::GetPropList(), Hostile(), C4ScriptConstDef::Identifier, and C4AulScriptEngine::RegisterGlobalConstant().
Referenced by C4Game::InitScriptEngine().
void MakeAbsCoordinates | ( | C4PropList * | _this, |
int32_t & | x, | ||
int32_t & | y | ||
) |
Definition at line 52 of file C4GameScript.cpp.
References C4Object::GetX(), C4Object::GetY(), and Object().
Referenced by FnPlaceVegetation().
void MakeAbsCoordinates | ( | C4PropList * | _this, |
long & | x, | ||
long & | y | ||
) |
Definition at line 62 of file C4GameScript.cpp.
References C4Object::GetX(), C4Object::GetY(), and Object().
bool SimFlight | ( | C4Real & | x, |
C4Real & | y, | ||
C4Real & | xdir, | ||
C4Real & | ydir, | ||
int32_t | iDensityMin, | ||
int32_t | iDensityMax, | ||
int32_t & | iIter | ||
) |
Definition at line 810 of file C4Movement.cpp.
References fixtoi(), GBackDensity(), C4Landscape::GetHeight(), C4Landscape::GetWidth(), GravAccel, Inside(), itofix(), Landscape, and Sign().
Referenced by SimFlightHitsLiquid().
C4ScriptConstDef C4ScriptGameConstMap |
Definition at line 3348 of file C4GameScript.cpp.
Referenced by InitGameFunctionMap().
C4ScriptFnDef C4ScriptGameFnMap |
Definition at line 3486 of file C4GameScript.cpp.
Referenced by InitGameFunctionMap().