#include "BodyComponent.h"
#include "DeleteEmitter.h"
#include "FrameId.h"
#include "lua/PropertiedObject.h"
#include "matrix3x3.h"
#include "vector3.h"
#include <string>
Go to the source code of this file.
|
| #define | OBJDEF(__thisClass, __parentClass, __TYPE) |
| |
|
| enum class | ObjectType {
BODY
, MODELBODY
, DYNAMICBODY
, SHIP
,
PLAYER
, SPACESTATION
, TERRAINBODY
, PLANET
,
STAR
, CARGOBODY
, PROJECTILE
, MISSILE
,
HYPERSPACECLOUD
} |
| |
◆ OBJDEF
| #define OBJDEF |
( |
|
__thisClass, |
|
|
|
__parentClass, |
|
|
|
__TYPE |
|
) |
| |
Value: static constexpr ObjectType StaticType() {
return ObjectType::__TYPE; } \
static constexpr ObjectType SuperType() {
return __parentClass::StaticType(); } \
virtual ObjectType GetType()
const override {
return ObjectType::__TYPE; } \
virtual bool IsType(
ObjectType c)
const override \
{ \
if (__thisClass::GetType() == (c)) \
return true; \
else \
return __parentClass::IsType(c); \
}
ObjectType
Definition Body.h:28
◆ ObjectType
| Enumerator |
|---|
| BODY | |
| MODELBODY | |
| DYNAMICBODY | |
| SHIP | |
| PLAYER | |
| SPACESTATION | |
| TERRAINBODY | |
| PLANET | |
| STAR | |
| CARGOBODY | |
| PROJECTILE | |
| MISSILE | |
| HYPERSPACECLOUD | |