27 #include "object/crash_sphere.h" 30 #include "object/object_create_params.h" 36 struct ModelCrashSphere;
95 return m_implementedInterfaces[
static_cast<int>(type)];
112 void SetRotationX(
float angle);
113 void SetRotationY(
float angle);
114 void SetRotationZ(
float angle);
115 float GetRotationX();
116 float GetRotationY();
117 float GetRotationZ();
125 void SetScale(
float scale);
129 void SetScaleX(
float angle);
130 void SetScaleY(
float angle);
131 void SetScaleZ(
float angle);
138 void SetCrashSpheres(
const std::vector<Gfx::ModelCrashSphere>& crashSpheres);
141 void AddCrashSphere(
const CrashSphere& crashSphere);
143 int GetCrashSphereCount();
149 std::vector<CrashSphere> GetAllCrashSpheres();
151 void DeleteAllCrashSpheres();
153 bool CanCollideWith(
CObject* other);
159 void SetCameraCollisionSphere(
const Math::Sphere& sphere);
165 void SetAnimateOnReset(
bool animateOnReset);
167 bool GetAnimateOnReset();
170 void SetCollisions(
bool collisions);
172 bool GetCollisions();
175 void SetTeam(
int team);
180 void SetProxyActivate(
bool activate);
182 bool GetProxyActivate();
185 void SetProxyDistance(
float distance);
187 float GetProxyDistance();
193 std::string GetTooltipText();
196 void SetLock(
bool lock);
207 virtual void TransformCrashSphere(
Math::Sphere& crashSphere) = 0;
209 virtual void TransformCameraCollisionSphere(
Math::Sphere& collisionSphere) = 0;
220 bool m_animateOnReset;
223 bool m_proxyActivate;
224 float m_proxyDistance;
int GetID() const
Returns object's unique id.
Definition: object.h:77
void SetTransparency(CObject *obj, float value)
Changes the level of transparency of an object and objects transported (battery & cargo) ...
Definition: camera.cpp:53
ObjectInterfaceTypes m_implementedInterfaces
interfaces that the object implements
Definition: object.h:214
std::vector< CrashSphere > m_crashSpheres
crash spheres
Definition: object.h:218
Legacy CObject interface.
Sphere used to detect object collisions.
Definition: crash_sphere.h:31
Definition: parserline.h:37
ObjectInterfaceType
Type of interface that an object implements.
Definition: object_interface_type.h:34
ObjectType m_type
object type
Definition: object.h:213
ObjectInterfaceType enum.
bool Implements(ObjectInterfaceType type) const
Check if object implements the given type of interface.
Definition: object.h:93
Namespace for (new) graphics code.
Definition: app.h:49
Definition: object_create_params.h:26
virtual bool GetDetectable()
Is this object detectable (not dead and not underground)?
Definition: object.h:203
ObjectType
Type of game object.
Definition: object_type.h:33
Definition: old_object_interface.h:45
3D (3x1) vector
Definition: vector.h:53
Definition: CBotDll.h:557
virtual void UpdateInterface()
Updates all interface controls.
Definition: object.h:90
ObjectType GetType() const
Returns object type.
Definition: object.h:72
Base class for all 3D in-game objects.
Definition: object.h:59
virtual bool GetActive()
Is this object active (not dead)?
Definition: object.h:201
const int m_id
unique identifier
Definition: object.h:212