25 #include <unordered_map>
36 using CStaticObjectUPtr = std::unique_ptr<CStaticObject>;
43 const std::string& key,
59 static CStaticObjectUPtr Create(
int id,
79 static const std::unordered_map<ObjectType, std::string, ObjectTypeHash> m_staticModelNames;
void SetTransparency(float value) override
Sets the transparency of object.
Definition: static_object.cpp:108
void Write(CLevelParserLine *line) override
Writes object properties to line in level file.
Definition: static_object.cpp:92
void TransformCrashSphere(Math::Sphere &crashSphere) override
Transform crash sphere by object's world matrix.
Definition: static_object.cpp:96
void TransformCameraCollisionSphere(Math::Sphere &collisionSphere) override
Transform crash sphere by object's world matrix.
Definition: static_object.cpp:102
3D model saved in model file
Definition: model.h:40
4x4 matrix
Definition: matrix.h:65
Definition: parserline.h:37
Definition: static_object.h:38
Terrain loader/generator and manager.
Definition: terrain.h:145
void Read(CLevelParserLine *line) override
Reads object properties from line in level file.
Definition: static_object.cpp:88
Namespace for (new) graphics code.
Definition: app.h:49
CObject - base class for all game objects.
Manager for models read from model files.
Definition: model_manager.h:34
The graphics engine.
Definition: engine.h:620
ObjectType
Type of game object.
Definition: object_type.h:33
3D (3x1) vector
Definition: vector.h:53
Base class for all 3D in-game objects.
Definition: object.h:59