|
| CBaseAlien (int id, ObjectType type) |
|
void | SetFixed (bool fixed) |
| Management of "temporarirly stationary" mode (alien on the back)
|
|
bool | GetFixed () |
|
void | Write (CLevelParserLine *line) override |
| Writes object properties to line in level file.
|
|
void | Read (CLevelParserLine *line) override |
| Reads object properties from line in level file.
|
|
| CBaseVehicle (int id, ObjectType type) |
|
| COldObject (int id) |
|
void | Simplify () override |
|
bool | DamageObject (DamageType type, float force=std::numeric_limits< float >::infinity(), CObject *killer=nullptr) 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)
|
|
void | DestroyObject (DestructionType type, CObject *killer=nullptr) 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.
|
|
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 | Write (CLevelParserLine *line) override |
| Writes object properties to line in level file.
|
|
void | Read (CLevelParserLine *line) override |
| Reads object properties from line in level file.
|
|
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)
|
|
bool | GetTrainer () override |
| Checks if remote control is disabled.
|
|
bool | GetPlusTrainer () |
|
void | SetToy (bool bEnable) |
|
bool | GetToy () |
|
void | SetManual (bool bManual) |
|
bool | GetManual () |
|
void | SetMasterParticle (int part, int parti) override |
|
void | SetTransporter (CObject *transporter) override |
| Set transporter object that transports this object.
|
|
CObject * | GetTransporter () override |
| Return transported object.
|
|
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.
|
|
Character * | GetCharacter () override |
|
float | GetAbsTime () |
|
float | GetCapacity () override |
| Return capacity of this power container.
|
|
bool | IsRechargeable () override |
| Returns true if this power container can be recharged.
|
|
void | SetShield (float level) override |
| Set shield level.
|
|
float | GetShield () override |
| Get shield level.
|
|
void | SetRange (float delay) override |
| Sets jet engine heating speed (bigger = slower, 0 for infinite)
|
|
float | GetRange () override |
| Returns jet engine heating speed (bigger = slower, 0 for infinite)
|
|
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)
|
|
float | GetReactorRange () override |
| Returns current jet engine heat level (this is actually how much is left before it overheats, so smaller = more hot)
|
|
void | SetTransparency (float value) override |
| Sets the transparency of object.
|
|
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.
|
|
Gfx::CameraType | GetCameraType () override |
| Return camera type for this object.
|
|
void | SetCameraLock (bool lock) override |
| Disallow camera changes.
|
|
bool | GetCameraLock () override |
| Check if camera changes are disallowed.
|
|
void | SetHighlight (bool highlight) override |
| Highlights the object on mouse over.
|
|
void | SetSelect (bool select, bool bDisplayError=true) override |
| Selects the object.
|
|
bool | GetSelect () override |
| Checks if the object is selected.
|
|
void | SetSelectable (bool bMode) |
|
bool | GetSelectable () override |
| Returns true if the object is selectable.
|
|
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)
|
|
float | GetMagnifyDamage () override |
| Return damage multiplier for the object (bigger = more damage, weaker shield)
|
|
void | SetDamaging (bool damaging) override |
| Set the status that means the object is currently taking damage.
|
|
bool | IsDamaging () override |
| Is object currently taking damage?
|
|
void | SetDying (DeathType deathType) override |
| Set the status that means the object is currently dying.
|
|
DeathType | GetDying () override |
| Return object death type.
|
|
bool | IsDying () override |
| Is object currently dying?
|
|
bool | GetActive () override |
| Is this object active (not dead)?
|
|
bool | GetDetectable () override |
| Is this object detectable (not dead and not underground)?
|
|
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.
|
|
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.
|
|
CMotion * | GetMotion () override |
| Returns CMotion instance associated with this object. If the object implements Movable interface, this can be assumed to be != nullptr.
|
|
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.
|
|
Math::Vector | GetPosition () const override |
| Returns object's position.
|
|
void | SetRotation (const Math::Vector &rotation) override |
| Sets object's rotation (Euler angles)
|
|
Math::Vector | GetRotation () const override |
| Returns object's rotation (Euler angles)
|
|
void | SetScale (const Math::Vector &scale) override |
| Sets objects's scale.
|
|
Math::Vector | GetScale () const override |
| Returns object's scale.
|
|
void | UpdateInterface () override |
| Updates all interface controls.
|
|
void | StopProgram () override |
| Stop currently running program.
|
|
bool | GetTraceDown () override |
| Is the pencil down?
|
|
void | SetTraceDown (bool down) override |
| Put the drawing pencil down.
|
|
TraceColor | GetTraceColor () override |
| Return color of the trace.
|
|
void | SetTraceColor (TraceColor color) override |
| Set color of the trace.
|
|
float | GetTraceWidth () override |
| Return trace width.
|
|
void | SetTraceWidth (float width) override |
| Set trace width.
|
|
bool | IsRepairable () override |
| Returns true if this object can be repaired in RepairStation.
|
|
float | GetShieldFullRegenTime () override |
| Return time (in seconds) required for full shield regeneration.
|
|
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.
|
|
void | SetBulletWall (bool bulletWall) |
|
bool | IsBulletWall () override |
|
int | MapPseudoSlot (Pseudoslot pseudoslot) override |
| Given one of the PSEUDOSLOT enums, returns real slot number, or -1 if specified pseudoslot is not present in this object.
|
|
int | GetNumSlots () override |
| Get number of slots. Valid slot numbers are 0 up to GetNumSlots()-1. Using invalid slot numbers in the other functions will crash the game.
|
|
Math::Vector | GetSlotPosition (int slotNum) override |
| Get relative position of a slot.
|
|
float | GetSlotAngle (int slotNum) override |
| Get relative angle (in radians) where robot should be positioned when inserting into a slot.
|
|
float | GetSlotAcceptanceAngle (int slotNum) override |
| Get the maximum angular distance from the ideal angle (in radians) where robot should be positioned when inserting into a slot.
|
|
CObject * | GetSlotContainedObject (int slotNum) override |
| Get object contained in a slot.
|
|
void | SetSlotContainedObject (int slotNum, CObject *object) override |
| Set object contained in a slot.
|
|
void | SetPowerPosition (const Math::Vector &powerPosition) |
|
virtual void | SetScale (const Math::Vector &scale) |
| Sets objects's scale.
|
|
void | SetScale (float scale) |
| Sets objects's scale (uniform value)
|
|
| CObject (const CObject &)=delete |
|
CObject & | operator= (const CObject &)=delete |
|
ObjectType | GetType () const |
| Returns object type.
|
|
int | GetID () const |
| Returns object's unique id.
|
|
bool | Implements (ObjectInterfaceType type) const |
| Check if object implements the given type of interface.
|
|
void | SetScale (float scale) |
| Sets objects's scale (uniform value)
|
|
void | SetCrashSpheres (const std::vector< Gfx::ModelCrashSphere > &crashSpheres) |
| Sets crash spheres for object.
|
|
void | AddCrashSphere (const CrashSphere &crashSphere) |
| Adds a new crash sphere.
|
|
int | GetCrashSphereCount () |
| Returns total number of crash spheres.
|
|
CrashSphere | GetFirstCrashSphere () |
| Returns the first crash sphere (assumes it exists)
|
|
std::vector< CrashSphere > | GetAllCrashSpheres () |
| Returns all crash spheres.
|
|
void | DeleteAllCrashSpheres () |
| Removes all crash spheres.
|
|
bool | CanCollideWith (CObject *other) |
| Returns true if this object can collide with the other one.
|
|
Math::Sphere | GetCameraCollisionSphere () |
| Returns sphere used to test for camera collisions.
|
|
void | SetCameraCollisionSphere (const Math::Sphere &sphere) |
| Sets sphere used to test for camera collisions.
|
|
void | SetAnimateOnReset (bool animateOnReset) |
| Sets flag controlling animation effect on level reset.
|
|
bool | GetAnimateOnReset () |
| Returns flag controlling animation effect on level reset.
|
|
void | SetCollisions (bool collisions) |
| Turns object collisions on/off.
|
|
bool | GetCollisions () |
| Returns true if collisions are enabled.
|
|
void | SetTeam (int team) |
| Sets object team (shouldn't be called after creation because the model won't update!)
|
|
int | GetTeam () |
| Returns object team.
|
|
void | SetProxyActivate (bool activate) |
| Enable object activation only after you come close.
|
|
bool | GetProxyActivate () |
| Returns close activation mode.
|
|
void | SetProxyDistance (float distance) |
| Sets distance for close activation.
|
|
float | GetProxyDistance () |
| Returns distance for close activation.
|
|
CBot::CBotVar * | GetBotVar () |
| Returns CBot "object" variable associated with this object.
|
|
std::string | GetTooltipText () |
| Returns tooltip text for an object.
|
|
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)
|
|
bool | GetLock () |
| Return "lock" mode of an object.
|
|
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.
|
|
| CTaskExecutorObjectImpl (ObjectInterfaceTypes &types, CObject *object) |
|
bool | EventProcess (const Event &event) |
|
bool | IsForegroundTask () override |
| Is executing foreground task?
|
|
bool | IsBackgroundTask () override |
| Is executing background task?
|
|
CForegroundTask * | GetForegroundTask () override |
| Return the foreground task.
|
|
CBackgroundTask * | GetBackgroundTask () override |
| Return the background task.
|
|
void | StopForegroundTask () override |
| Stop foreground task.
|
|
void | StopBackgroundTask () override |
| Stop background task.
|
|
Error | StartTaskTake () override |
| Start a foreground task.
|
|
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)
|
|
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.
|
|
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.
|
|
bool | ReadProgram (Program *program, const std::string &filename) override |
| Read program from a given file.
|
|
bool | WriteProgram (Program *program, const std::string &filename) override |
| Write program to a given file.
|
|
bool | GetCompile (Program *program) override |
| Check if program was compiled successfully.
|
|
Program * | AddProgram () override |
| Add a new program.
|
|
void | AddProgram (std::unique_ptr< Program > program) override |
| Add given program to the program list stored in this robot.
|
|
void | RemoveProgram (Program *program) override |
| Remove program.
|
|
Program * | CloneProgram (Program *program) override |
| Clone a program.
|
|
std::vector< std::unique_ptr< Program > > & | GetPrograms () override |
| Return a std::vector of all available programs.
|
|
int | GetProgramCount () override |
| Return count of all programs.
|
|
Program * | GetProgram (int index) override |
| Return program with the given index.
|
|
Program * | GetOrAddProgram (int index) override |
| Return program at the given index (creating it and all previous ones as needed)
|
|
int | GetProgramIndex (Program *program) override |
| Return index in the list of given Program instance.
|
|
void | SetProgramStorageIndex (int programStorageIndex) override |
| Set index for use in filename for saved programs (-1 to disable)
|
|
int | GetProgramStorageIndex () override |
| Return index that is used while saving programs.
|
|
void | SaveAllUserPrograms (const std::string &userSource) override |
| Save all user programs.
|
|
void | LoadAllProgramsForLevel (CLevelParserLine *levelSource, const std::string &userSource, bool loadSoluce) override |
| Load all programs when loading the level including previously saved user programs.
|
|
void | SaveAllProgramsForSavedScene (CLevelParserLine *levelSourceLine, const std::string &levelSource) override |
| Save all programs when saving the saved scene.
|
|
void | LoadAllProgramsForSavedScene (CLevelParserLine *levelSourceLine, const std::string &levelSource) override |
| Load all programs when loading the saved scene.
|
|
| CProgramStorageObject (ObjectInterfaceTypes &types) |
|
| CProgrammableObjectImpl (ObjectInterfaceTypes &types, CObject *object) |
|
bool | EventProcess (const Event &event) |
|
bool | IsProgram () override |
| Check if a program is running.
|
|
void | RunProgram (Program *program) override |
| Start a program.
|
|
Program * | GetCurrentProgram () override |
| Returns the currently running program, or nullptr if no program is running.
|
|
void | StopProgram () override |
| Stop currently running program.
|
|
bool | ReadStack (std::istream &istr) override |
| Read current execution status from file.
|
|
bool | WriteStack (std::ostream &ostr) override |
| Save current execution status to file.
|
|
void | TraceRecordStart () override |
| Start recording trace.
|
|
void | TraceRecordStop () override |
| Stop recording trace and generate CBot program.
|
|
bool | IsTraceRecord () override |
| Returns true if trace recording is in progress.
|
|
void | SetActivity (bool activity) override |
| Management of object "activity" (temporairly stops program execution, right now used only by Aliens in eggs)
|
|
bool | GetActivity () override |
|
void | SetCmdLine (unsigned int rank, float value) |
|
float | GetCmdLine (unsigned int rank) override |
| Returns program cmdline values for an object.
|
|
std::vector< float > & | GetCmdLine () |
|
| CProgrammableObject (ObjectInterfaceTypes &types) |
|
| CJostleableObject (ObjectInterfaceTypes &types) |
|
| CSlottedObject (ObjectInterfaceTypes &types) |
|
void | SetSlotContainedObjectReq (Pseudoslot pseudoslot, CObject *object) |
|
CObject * | GetSlotContainedObjectOpt (Pseudoslot pseudoslot) |
|
CObject * | GetSlotContainedObjectReq (Pseudoslot pseudoslot) |
|
| 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].
|
|
float | GetEnergyLevel () override |
| Get energy level (percentage), value in range [0..1].
|
|
| CPowerContainerObject (ObjectInterfaceTypes &types) |
|
virtual void | SetEnergy (float energy) |
| Set amount of energy in the container, value in range [0..GetCapacity()].
|
|
virtual float | GetEnergy () |
| Get amount of energy in the container, value in range [0..GetCapacity()].
|
|
| CRangedObject (ObjectInterfaceTypes &types) |
|
| CTraceDrawingObject (ObjectInterfaceTypes &types) |
|
| CShieldedAutoRegenObject (ObjectInterfaceTypes &types) |
|
| CShieldedObject (ObjectInterfaceTypes &types) |
|
| CDestroyableObject (ObjectInterfaceTypes &types) |
|
| CDamageableObject (ObjectInterfaceTypes &types) |
|