|
|
bool | AddObject (CObject *instance) |
| | Registers new object.
|
| |
|
bool | DeleteObject (CObject *instance) |
| | Unregisters the object.
|
| |
|
CObject * | GetObjectById (unsigned int id) |
| | Finds object by id (CObject::GetID())
|
| |
|
CObject * | GetObjectByRank (unsigned int id) |
| | Gets object by id in range <0; m_table.size())
|
| |
const std::map< unsigned int,
CObject * > & | GetAllObjects () |
| | Returns all objects.
|
| |
|
void | Flush () |
| | Removes all objects.
|
| |
|
CObject * | CreateObject (Math::Vector pos, float angle, ObjectType type, float power=-1.f, float zoom=1.f, float height=0.f, bool trainer=false, bool toy=false, int option=0) |
| | Creates an object.
|
| |
|
bool | DestroyObject (int id) |
| | Destroys an object.
|
| |
|
|
CObject * | Radar (CObject *pThis, ObjectType type=OBJECT_NULL, float angle=0.0f, float focus=Math::PI *2.0f, float minDist=0.0f, float maxDist=1000.0f, bool furthest=false, RadarFilter filter=FILTER_NONE, bool cbotTypes=false) |
| | Finds an object, like radar() in CBot.
|
| |
|
CObject * | Radar (CObject *pThis, std::vector< ObjectType > type=std::vector< ObjectType >(), float angle=0.0f, float focus=Math::PI *2.0f, float minDist=0.0f, float maxDist=1000.0f, bool furthest=false, RadarFilter filter=FILTER_NONE, bool cbotTypes=false) |
| |
|
CObject * | Radar (CObject *pThis, Math::Vector thisPosition, float thisAngle, ObjectType type=OBJECT_NULL, float angle=0.0f, float focus=Math::PI *2.0f, float minDist=0.0f, float maxDist=1000.0f, bool furthest=false, RadarFilter filter=FILTER_NONE, bool cbotTypes=false) |
| |
|
CObject * | Radar (CObject *pThis, Math::Vector thisPosition, float thisAngle, std::vector< ObjectType > type=std::vector< ObjectType >(), float angle=0.0f, float focus=Math::PI *2.0f, float minDist=0.0f, float maxDist=1000.0f, bool furthest=false, RadarFilter filter=FILTER_NONE, bool cbotTypes=false) |
| |
|
|
CObject * | FindNearest (CObject *pThis, ObjectType type=OBJECT_NULL, float maxDist=1000.0f, bool cbotTypes=false) |
| | Returns nearest object that's closer than maxDist.
|
| |
|
CObject * | FindNearest (CObject *pThis, std::vector< ObjectType > type=std::vector< ObjectType >(), float maxDist=1000.0f, bool cbotTypes=false) |
| |
|
CObject * | FindNearest (CObject *pThis, Math::Vector thisPosition, ObjectType type=OBJECT_NULL, float maxDist=1000.0f, bool cbotTypes=false) |
| |
|
CObject * | FindNearest (CObject *pThis, Math::Vector thisPosition, std::vector< ObjectType > type=std::vector< ObjectType >(), float maxDist=1000.0f, bool cbotTypes=false) |
| |