27 #include "object/crash_sphere.h" 28 #include "object/object_create_params.h" 36 struct ModelCrashSphere;
99 return m_implementedInterfaces[
static_cast<int>(type)];
116 void SetRotationX(
float angle);
117 void SetRotationY(
float angle);
118 void SetRotationZ(
float angle);
119 float GetRotationX();
120 float GetRotationY();
121 float GetRotationZ();
129 void SetScale(
float scale);
133 void SetScaleX(
float angle);
134 void SetScaleY(
float angle);
135 void SetScaleZ(
float angle);
142 void SetCrashSpheres(
const std::vector<Gfx::ModelCrashSphere>& crashSpheres);
145 void AddCrashSphere(
const CrashSphere& crashSphere);
147 int GetCrashSphereCount();
153 std::vector<CrashSphere> GetAllCrashSpheres();
155 void DeleteAllCrashSpheres();
157 bool CanCollideWith(
CObject* other);
163 void SetCameraCollisionSphere(
const Math::Sphere& sphere);
169 void SetAnimateOnReset(
bool animateOnReset);
171 bool GetAnimateOnReset();
174 void SetCollisions(
bool collisions);
176 bool GetCollisions();
179 void SetTeam(
int team);
184 void SetProxyActivate(
bool activate);
186 bool GetProxyActivate();
189 void SetProxyDistance(
float distance);
191 float GetProxyDistance();
197 std::string GetTooltipText();
200 void SetLock(
bool lock);
211 virtual void TransformCrashSphere(
Math::Sphere& crashSphere) = 0;
213 virtual void TransformCameraCollisionSphere(
Math::Sphere& collisionSphere) = 0;
224 bool m_animateOnReset;
227 bool m_proxyActivate;
228 float m_proxyDistance;
int GetID() const
Returns object's unique id.
Definition: object.h:81
void SetTransparency(CObject *obj, float value)
Changes the level of transparency of an object and objects transported (battery & cargo) ...
Definition: camera.cpp:56
ObjectInterfaceTypes m_implementedInterfaces
interfaces that the object implements
Definition: object.h:218
std::vector< CrashSphere > m_crashSpheres
crash spheres
Definition: object.h:222
Legacy CObject interface.
Sphere used to detect object collisions.
Definition: crash_sphere.h:33
Definition: parserline.h:37
A CBot variable.
Definition: CBotVar.h:42
ObjectInterfaceType
Type of interface that an object implements.
Definition: object_interface_type.h:34
ObjectType m_type
object type
Definition: object.h:217
ObjectInterfaceType enum.
bool Implements(ObjectInterfaceType type) const
Check if object implements the given type of interface.
Definition: object.h:97
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:207
ObjectType
Type of game object.
Definition: object_type.h:33
Definition: old_object_interface.h:48
3D (3x1) vector
Definition: vector.h:53
virtual void UpdateInterface()
Updates all interface controls.
Definition: object.h:94
ObjectType GetType() const
Returns object type.
Definition: object.h:76
CBot engine.
Definition: CBotCallMethode.cpp:28
Base class for all 3D in-game objects.
Definition: object.h:63
virtual bool GetActive()
Is this object active (not dead)?
Definition: object.h:205
const int m_id
unique identifier
Definition: object.h:216