|
| CExchangePost (int id) |
|
bool | SetInfo (const std::string &name, float value) |
|
const std::vector< ExchangePostInfo > & | GetInfoList () |
|
boost::optional< float > | GetInfoValue (const std::string &name) |
|
bool | HasInfo (const std::string &name) |
|
bool | DeleteInfo (const std::string &name) |
|
void | SetInfoUpdate (bool update) |
|
bool | GetInfoUpdate () |
|
void | Write (CLevelParserLine *line) override |
| Writes object properties to line in level file. More...
|
|
void | Read (CLevelParserLine *line) override |
| Reads object properties from line in level file. More...
|
|
void | ReadInfo (CLevelParserLine *line) |
|
| CBaseBuilding (int id, ObjectType type) |
|
| COldObject (int id) |
|
void | Simplify () override |
|
bool | DamageObject (DamageType type, float force=std::numeric_limits< float >::infinity()) override |
| Damage the object, with the given force. Returns true if the object has been fully destroyed (assuming the object is destroyable, of course). If force == infinity, destroy immediately (this is the default value) More...
|
|
void | DestroyObject (DestructionType type) override |
| Destroy the object immediately. Use this only if you are 100% sure this is what you want, because object with magnifyDamage=0 should be able to bypass all damage. It's recommended to use CDamageableObject::DamageObject() instead. More...
|
|
bool | EventProcess (const Event &event) override |
|
void | UpdateMapping () |
|
void | DeletePart (int part) override |
|
void | SetObjectRank (int part, int objRank) |
|
int | GetObjectRank (int part) override |
|
void | SetObjectParent (int part, int parent) |
|
void | SetType (ObjectType type) override |
|
const char * | GetName () |
|
int | GetOption () override |
|
void | SetDrawFront (bool bDraw) override |
|
int | GetShadowLight () |
|
void | SetFloorHeight (float height) |
|
void | FloorAdjust () override |
|
void | SetLinVibration (Math::Vector dir) override |
|
Math::Vector | GetLinVibration () |
|
void | SetCirVibration (Math::Vector dir) override |
|
Math::Vector | GetCirVibration () |
|
void | SetTilt (Math::Vector dir) |
|
Math::Vector | GetTilt () override |
|
void | SetPartPosition (int part, const Math::Vector &pos) |
|
Math::Vector | GetPartPosition (int part) const |
|
void | SetPartRotation (int part, const Math::Vector &angle) |
|
Math::Vector | GetPartRotation (int part) const |
|
void | SetPartRotationY (int part, float angle) |
|
void | SetPartRotationX (int part, float angle) |
|
void | SetPartRotationZ (int part, float angle) |
|
float | GetPartRotationY (int part) |
|
float | GetPartRotationX (int part) |
|
float | GetPartRotationZ (int part) |
|
void | SetPartScale (int part, float zoom) |
|
void | SetPartScale (int part, Math::Vector zoom) |
|
Math::Vector | GetPartScale (int part) const |
|
void | SetPartScaleX (int part, float zoom) |
|
float | GetPartScaleX (int part) |
|
void | SetPartScaleY (int part, float zoom) |
|
float | GetPartScaleY (int part) |
|
void | SetPartScaleZ (int part, float zoom) |
|
float | GetPartScaleZ (int part) |
|
void | SetTrainer (bool bEnable) override |
| Disables remote control of an object (only programming allowed) More...
|
|
bool | GetTrainer () override |
| Checks if remote control is disabled. More...
|
|
void | SetToy (bool bEnable) |
|
bool | GetToy () |
|
void | SetManual (bool bManual) |
|
bool | GetManual () |
|
void | SetMasterParticle (int part, int parti) override |
|
void | SetPower (CObject *power) override |
| Sets power cell. More...
|
|
CObject * | GetPower () override |
| Returns the power cell. More...
|
|
Math::Vector | GetPowerPosition () override |
| Returns the relative position of power cell. More...
|
|
void | SetPowerPosition (const Math::Vector &powerPosition) override |
| Sets the relative position of power cell. More...
|
|
void | SetCargo (CObject *cargo) override |
| Sets carried object. More...
|
|
CObject * | GetCargo () override |
| Returns carried object. More...
|
|
void | SetTransporter (CObject *transporter) override |
| Set transporter object that transports this object. More...
|
|
CObject * | GetTransporter () override |
| Return transported object. More...
|
|
void | SetTransporterPart (int part) override |
|
Math::Matrix * | GetRotateMatrix (int part) |
|
Math::Matrix * | GetWorldMatrix (int part) override |
|
void | AdjustCamera (Math::Vector &eye, float &dirH, float &dirV, Math::Vector &lookat, Math::Vector &upVec, Gfx::CameraType type) override |
| Adjust camera parameters for the given object. More...
|
|
Character * | GetCharacter () override |
|
float | GetAbsTime () |
|
float | GetCapacity () override |
| Return capacity of this power container. More...
|
|
bool | IsRechargeable () override |
| Returns true if this power container can be recharged. More...
|
|
void | SetShield (float level) override |
| Set shield level. More...
|
|
float | GetShield () override |
| Get shield level. More...
|
|
void | SetRange (float delay) override |
| Sets jet engine heating speed (bigger = slower, 0 for infinite) More...
|
|
float | GetRange () override |
| Returns jet engine heating speed (bigger = slower, 0 for infinite) More...
|
|
void | SetReactorRange (float reactorRange) override |
| Sets current jet engine heat level (this is actually how much is left before it overheats, so smaller = more hot) More...
|
|
float | GetReactorRange () override |
| Returns current jet engine heat level (this is actually how much is left before it overheats, so smaller = more hot) More...
|
|
void | SetTransparency (float value) override |
| Sets the transparency of object. More...
|
|
Math::Sphere | GetJostlingSphere () const override |
|
bool | JostleObject (float force) override |
|
void | SetVirusMode (bool bEnable) override |
|
bool | GetVirusMode () override |
|
void | SetCameraType (Gfx::CameraType type) override |
| Set camera type for this object. More...
|
|
Gfx::CameraType | GetCameraType () override |
| Return camera type for this object. More...
|
|
void | SetCameraLock (bool lock) override |
| Disallow camera changes. More...
|
|
bool | GetCameraLock () override |
| Check if camera changes are disallowed. More...
|
|
void | SetHighlight (bool highlight) override |
| Highlights the object on mouse over. More...
|
|
void | SetSelect (bool select, bool bDisplayError=true) override |
| Selects the object. More...
|
|
bool | GetSelect () override |
| Checks if the object is selected. More...
|
|
void | SetSelectable (bool bMode) |
|
bool | GetSelectable () override |
| Returns true if the object is selectable. More...
|
|
void | SetUnderground (bool underground) |
|
void | SetCheckToken (bool bMode) |
|
bool | GetCheckToken () |
|
void | SetMagnifyDamage (float factor) override |
| Set damage multiplier for the object (bigger = more damage, weaker shield) More...
|
|
float | GetMagnifyDamage () override |
| Return damage multiplier for the object (bigger = more damage, weaker shield) More...
|
|
void | SetDying (DeathType deathType) override |
| Set the status that means the object is currently dying. More...
|
|
DeathType | GetDying () override |
| Return object death type. More...
|
|
bool | IsDying () override |
| Is object currently dying? More...
|
|
bool | GetActive () override |
| Is this object active (not dead)? More...
|
|
bool | GetDetectable () override |
| Is this object detectable (not dead and not underground)? More...
|
|
void | SetGunGoalV (float gunGoal) |
|
void | SetGunGoalH (float gunGoal) |
|
float | GetGunGoalV () |
|
float | GetGunGoalH () |
|
float | GetShowLimitRadius () override |
| Return object operation radius for display after clicking UI button. More...
|
|
void | CreateSelectParticle () |
|
CPhysics * | GetPhysics () override |
| Returns CPhysics instance associated with this object. If the object implements Movable interface, and type != OBJECT_TOTO, this can be assumed to be != nullptr. More...
|
|
CMotion * | GetMotion () override |
| Returns CMotion instance associated with this object. If the object implements Movable interface, this can be assumed to be != nullptr. More...
|
|
CAuto * | GetAuto () override |
|
bool | CreateShadowCircle (float radius, float intensity, Gfx::EngineShadowType type=Gfx::ENG_SHADOW_NORM) |
|
bool | CreateShadowLight (float height, Gfx::Color color) |
|
void | FlatParent () override |
|
void | SetPosition (const Math::Vector &pos) override |
| Sets object's position. More...
|
|
Math::Vector | GetPosition () const override |
| Returns object's position. More...
|
|
void | SetRotation (const Math::Vector &rotation) override |
| Sets object's rotation (Euler angles) More...
|
|
Math::Vector | GetRotation () const override |
| Returns object's rotation (Euler angles) More...
|
|
void | SetScale (const Math::Vector &scale) override |
| Sets objects's scale. More...
|
|
Math::Vector | GetScale () const override |
| Returns object's scale. More...
|
|
void | UpdateInterface () override |
| Updates all interface controls. More...
|
|
void | StopProgram () override |
| Stop currently running program. More...
|
|
bool | GetTraceDown () override |
| Is the pencil down? More...
|
|
void | SetTraceDown (bool down) override |
| Put the drawing pencil down. More...
|
|
TraceColor | GetTraceColor () override |
| Return color of the trace. More...
|
|
void | SetTraceColor (TraceColor color) override |
| Set color of the trace. More...
|
|
float | GetTraceWidth () override |
| Return trace width. More...
|
|
void | SetTraceWidth (float width) override |
| Set trace width. More...
|
|
bool | IsRepairable () override |
| Returns true if this object can be repaired in RepairStation. More...
|
|
float | GetShieldFullRegenTime () override |
| Return time (in seconds) required for full shield regeneration. More...
|
|
float | GetLightningHitProbability () override |
| Returns the distance modifier for CLightning, used to modify hit probability. Value in range [0..1], where 0 is never and 1 is normal probability. More...
|
|
| CObject (const CObject &)=delete |
|
CObject & | operator= (const CObject &)=delete |
|
ObjectType | GetType () const |
| Returns object type. More...
|
|
int | GetID () const |
| Returns object's unique id. More...
|
|
bool | Implements (ObjectInterfaceType type) const |
| Check if object implements the given type of interface. More...
|
|
void | SetScale (float scale) |
| Sets objects's scale (uniform value) More...
|
|
void | SetCrashSpheres (const std::vector< Gfx::ModelCrashSphere > &crashSpheres) |
| Sets crash spheres for object. More...
|
|
void | AddCrashSphere (const CrashSphere &crashSphere) |
| Adds a new crash sphere. More...
|
|
int | GetCrashSphereCount () |
| Returns total number of crash spheres. More...
|
|
CrashSphere | GetFirstCrashSphere () |
| Returns the first crash sphere (assumes it exists) More...
|
|
std::vector< CrashSphere > | GetAllCrashSpheres () |
| Returns all crash spheres. More...
|
|
void | DeleteAllCrashSpheres () |
| Removes all crash spheres. More...
|
|
bool | CanCollideWith (CObject *other) |
| Returns true if this object can collide with the other one. More...
|
|
Math::Sphere | GetCameraCollisionSphere () |
| Returns sphere used to test for camera collisions. More...
|
|
void | SetCameraCollisionSphere (const Math::Sphere &sphere) |
| Sets sphere used to test for camera collisions. More...
|
|
void | SetAnimateOnReset (bool animateOnReset) |
| Sets flag controlling animation effect on level reset. More...
|
|
bool | GetAnimateOnReset () |
| Returns flag controlling animation effect on level reset. More...
|
|
void | SetCollisions (bool collisions) |
| Turns object collisions on/off. More...
|
|
bool | GetCollisions () |
| Returns true if collisions are enabled. More...
|
|
void | SetTeam (int team) |
| Sets object team (shouldn't be called after creation because the model won't update!) More...
|
|
int | GetTeam () |
| Returns object team. More...
|
|
void | SetProxyActivate (bool activate) |
| Enable object activation only after you come close. More...
|
|
bool | GetProxyActivate () |
| Returns close activation mode. More...
|
|
void | SetProxyDistance (float distance) |
| Sets distance for close activation. More...
|
|
float | GetProxyDistance () |
| Returns distance for close activation. More...
|
|
CBot::CBotVar * | GetBotVar () |
| Returns CBot "object" variable associated with this object. More...
|
|
std::string | GetTooltipText () |
| Returns tooltip text for an object. More...
|
|
void | SetLock (bool lock) |
| Set "lock" mode of an object (for example, a robot while it's being factored, or a building while it's built) More...
|
|
bool | GetLock () |
| Return "lock" mode of an object. More...
|
|
void | SetRotationX (float angle) |
|
void | SetRotationY (float angle) |
|
void | SetRotationZ (float angle) |
|
float | GetRotationX () |
|
float | GetRotationY () |
|
float | GetRotationZ () |
|
void | SetScaleX (float angle) |
|
void | SetScaleY (float angle) |
|
void | SetScaleZ (float angle) |
|
float | GetScaleX () |
|
float | GetScaleY () |
|
float | GetScaleZ () |
|
| CInteractiveObject (ObjectInterfaceTypes &types) |
|
| CTransportableObject (ObjectInterfaceTypes &types) |
|
bool | IsBeingTransported () |
| Return true if the object is currently transported. More...
|
|
| CTaskExecutorObjectImpl (ObjectInterfaceTypes &types, CObject *object) |
|
bool | EventProcess (const Event &event) |
|
bool | IsForegroundTask () override |
| Is executing foreground task? More...
|
|
bool | IsBackgroundTask () override |
| Is executing background task? More...
|
|
CForegroundTask * | GetForegroundTask () override |
| Return the foreground task. More...
|
|
CBackgroundTask * | GetBackgroundTask () override |
| Return the background task. More...
|
|
void | StopForegroundTask () override |
| Stop foreground task. More...
|
|
void | StopBackgroundTask () override |
| Stop background task. More...
|
|
Error | StartTaskTake () override |
| Start a foreground task. More...
|
|
Error | StartTaskManip (TaskManipOrder order, TaskManipArm arm) override |
|
Error | StartTaskFlag (TaskFlagOrder order, int rank) override |
|
Error | StartTaskBuild (ObjectType type) override |
|
Error | StartTaskSearch () override |
|
Error | StartTaskDeleteMark () override |
|
Error | StartTaskTerraform () override |
|
Error | StartTaskRecover () override |
|
Error | StartTaskFire (float delay) override |
|
Error | StartTaskFireAnt (Math::Vector impact) override |
|
Error | StartTaskSpiderExplo () override |
|
Error | StartTaskPen (bool down, TraceColor color=TraceColor::Default) override |
|
Error | StartTaskWait (float time) override |
| Start a foreground task (scriptable tasks, not in UI) More...
|
|
Error | StartTaskAdvance (float length) override |
|
Error | StartTaskTurn (float angle) override |
|
Error | StartTaskGoto (Math::Vector pos, float altitude, TaskGotoGoal goalMode, TaskGotoCrash crashMode) override |
|
Error | StartTaskInfo (const char *name, float value, float power, bool bSend) override |
|
Error | StartTaskShield (TaskShieldMode mode, float delay=1000.0f) override |
| Starts a background task. More...
|
|
Error | StartTaskGunGoal (float dirV, float dirH) override |
|
| CTaskExecutorObject (ObjectInterfaceTypes &types) |
|
| CProgramStorageObjectImpl (ObjectInterfaceTypes &types, CObject *object) |
|
bool | IntroduceVirus () override |
|
void | SetActiveVirus (bool bActive) override |
|
bool | GetActiveVirus () override |
| Checks virus active status. More...
|
|
bool | ReadProgram (Program *program, const std::string &filename) override |
| Read program from a given file. More...
|
|
bool | WriteProgram (Program *program, const std::string &filename) override |
| Write program to a given file. More...
|
|
bool | GetCompile (Program *program) override |
| Check if program was compiled successfully. More...
|
|
Program * | AddProgram () override |
| Add a new program. More...
|
|
void | AddProgram (std::unique_ptr< Program > program) override |
| Add given program to the program list stored in this robot. More...
|
|
void | RemoveProgram (Program *program) override |
| Remove program. More...
|
|
Program * | CloneProgram (Program *program) override |
| Clone a program. More...
|
|
std::vector< std::unique_ptr< Program > > & | GetPrograms () override |
| Return a std::vector of all available programs. More...
|
|
int | GetProgramCount () override |
| Return count of all programs. More...
|
|
Program * | GetProgram (int index) override |
| Return program with the given index. More...
|
|
Program * | GetOrAddProgram (int index) override |
| Return program at the given index (creating it and all previous ones as needed) More...
|
|
int | GetProgramIndex (Program *program) override |
| Return index in the list of given Program instance. More...
|
|
void | SetProgramStorageIndex (int programStorageIndex) override |
| Set index for use in filename for saved programs (-1 to disable) More...
|
|
int | GetProgramStorageIndex () override |
| Return index that is used while saving programs. More...
|
|
void | SaveAllUserPrograms (const std::string &userSource) override |
| Save all user programs. More...
|
|
void | LoadAllProgramsForLevel (CLevelParserLine *levelSource, const std::string &userSource, bool loadSoluce) override |
| Load all programs when loading the level including previously saved user programs. More...
|
|
void | SaveAllProgramsForSavedScene (CLevelParserLine *levelSourceLine, const std::string &levelSource) override |
| Save all programs when saving the saved scene. More...
|
|
void | LoadAllProgramsForSavedScene (CLevelParserLine *levelSourceLine, const std::string &levelSource) override |
| Load all programs when loading the saved scene. More...
|
|
| CProgramStorageObject (ObjectInterfaceTypes &types) |
|
| CProgrammableObjectImpl (ObjectInterfaceTypes &types, CObject *object) |
|
bool | EventProcess (const Event &event) |
|
bool | IsProgram () override |
| Check if a program is running. More...
|
|
void | RunProgram (Program *program) override |
| Start a program. More...
|
|
Program * | GetCurrentProgram () override |
| Returns the currently running program, or nullptr if no program is running. More...
|
|
bool | ReadStack (FILE *file) override |
| Read current execution status from file. More...
|
|
bool | WriteStack (FILE *file) override |
| Save current execution status to file. More...
|
|
void | TraceRecordStart () override |
| Start recording trace. More...
|
|
void | TraceRecordStop () override |
| Stop recording trace and generate CBot program. More...
|
|
bool | IsTraceRecord () override |
| Returns true if trace recording is in progress. More...
|
|
void | SetActivity (bool activity) override |
| Management of object "activity" (temporairly stops program execution, right now used only by Aliens in eggs) More...
|
|
bool | GetActivity () override |
|
void | SetCmdLine (unsigned int rank, float value) |
|
float | GetCmdLine (unsigned int rank) override |
| Returns program cmdline values for an object. More...
|
|
std::vector< float > & | GetCmdLine () |
|
| CProgrammableObject (ObjectInterfaceTypes &types) |
|
| CJostleableObject (ObjectInterfaceTypes &types) |
|
| CCarrierObject (ObjectInterfaceTypes &types) |
|
bool | IsCarryingCargo () |
| Checks whether there is any cargo. More...
|
|
| CPoweredObject (ObjectInterfaceTypes &types) |
|
| CJetFlyingObject (ObjectInterfaceTypes &types) |
|
| CFlyingObject (ObjectInterfaceTypes &types) |
|
| CMovableObject (ObjectInterfaceTypes &types) |
|
| CControllableObject (ObjectInterfaceTypes &types) |
|
| CPowerContainerObjectImpl (ObjectInterfaceTypes &types) |
|
void | SetEnergyLevel (float level) override |
| Set energy level (percentage), value in range [0..1]. More...
|
|
float | GetEnergyLevel () override |
| Get energy level (percentage), value in range [0..1]. More...
|
|
| CPowerContainerObject (ObjectInterfaceTypes &types) |
|
virtual void | SetEnergy (float energy) |
| Set amount of energy in the container, value in range [0..GetCapacity()]. More...
|
|
virtual float | GetEnergy () |
| Get amount of energy in the container, value in range [0..GetCapacity()]. More...
|
|
| CRangedObject (ObjectInterfaceTypes &types) |
|
| CTraceDrawingObject (ObjectInterfaceTypes &types) |
|
| CShieldedAutoRegenObject (ObjectInterfaceTypes &types) |
|
| CShieldedObject (ObjectInterfaceTypes &types) |
|
| CDestroyableObject (ObjectInterfaceTypes &types) |
|
| CDamageableObject (ObjectInterfaceTypes &types) |
|