#include <cmpCollision.h>

Public Types | |
| enum | eType { normal = 0, use_bounds = 1, xy_symmetric = 2, use_fat = 3, use_narrow = 4, use_frame = 5 } |
| Collision Type. More... | |
Public Member Functions | |
| CCmpCollision (CGameEntity *pGE) | |
| Create with default values. | |
Virtual methods | |
| virtual int | set (const EDIT_DATA &editData) |
| Set a value. | |
| virtual int | get (EDIT_DATA &editData) const |
| Get a value. | |
| virtual int | act (const ACTION_DATA &actData) |
| Preform an action. | |
| virtual void | update () |
| Update this Cmp for a single frame. | |
Static Public Attributes | |
| static const eType | kDefaultType = CCmpCollision::normal |
| Type of collision. | |
| static const CVector3D | kDefaultMaxBounds |
| Bounding box/ellipsoid max values. | |
| static const CVector3D | kDefaultMinBounds |
| Bounding box/ellipsoid min values. | |
| static const int | kDefaultFrameNumber |
| Frame number to use if "use_frame" is selected as type. | |
| static const int | kDefaultPush |
| An entity with a higher value will consider an entity with a lower value not an obstacle. | |
(c) 2007-2008 oP group Germany GbR. All rights reserved.
This source code is provided "as is" with no warranty and must not be distributed without written permission.
| enum CCmpCollision::eType |
| CCmpCollision::CCmpCollision | ( | CGameEntity * | pGE | ) |
Create with default values.
apply changes to the parent GE
| int CCmpCollision::set | ( | const EDIT_DATA & | editData | ) | [virtual] |
Set a value.
If we have data of this type, use editData to set its value.
| editData | Data type and value (see EDIT_DATA struct). |
Implements CCmp.
| int CCmpCollision::get | ( | EDIT_DATA & | editData | ) | const [virtual] |
Get a value.
If we have data of this type, use editData to get its value.
| editData | Data type we are looking for, and memory to store value (see EDIT_DATA struct). |
Implements CCmp.
| int CCmpCollision::act | ( | const ACTION_DATA & | actData | ) | [virtual] |
Preform an action.
Handle the action passed in (ignore if we do not handle the action type).
| actData | The data used to preform the action (see ACTION_DATA struct). |
Implements CCmp.
const CCmpCollision::eType CCmpCollision::kDefaultType = CCmpCollision::normal [static] |
Type of collision.
Style of collision.
1.5.4