Public Member Functions | |
| cBody2D (const tString &asName, cMesh2D *apMesh, cVector2f avSize, cCollider2D *apCollider, int alID) | |
| const cRect2f & | GetBoundingBox () |
| bool | UpdateBoundingBox () |
| void | Move (float afValue) |
| void | UpdateLogic (float afTimeStep) |
| tString | GetEntityType () |
| cVector3f & | GetPosition () |
| cVector3f & | GetLastPosition () |
| void | ResetLastPosition () |
| float | GetVelocity () |
| float | GetMaxVelocity () |
| float | GetAcceleration () |
| float | GetGravity () |
| float | GetMaxGravityVel () |
| bool | GetCollidable () |
| bool | GetCollides () |
| float | GetAirFriction () |
| float | GetGroundFriction () |
| const cVector2f & | GetSize () |
| const cVector3f & | GetMovement () |
| void | SetMaxVelocity (float afMaxVel) |
| void | SetAcceleration (float afAcc) |
| void | SetGravity (float afGravity) |
| void | SetMaxGravityVel (float afMaxGravityVel) |
| void | SetCollidable (bool abCollidable) |
| void | SetCollides (bool abCollides) |
| void | SetAirFriction (float afAirFriction) |
| void | SetGroundFriction (float afGroundFriction) |
| void | AddForce (float afAngle, float afStrength) |
| void | AddForce (const cVector2f &avForce) |
| void | SetForce (float afAngle, float afStrength) |
| void | SetForce (const cVector2f &avForce) |
| const cVector2f & | GetForce () const |
| void | SetCollideFlag (tFlag alFlag) |
| tFlag | GetCollideFlag () |
| void | SetAttachToGround (bool abX) |
| bool | GetAttachToGround () |
| void | SetAttachBodies (bool abX) |
| bool | GetAttachBodies () |
| void | AttachBody (cBody2D *apBody) |
| void | DetachBody (cBody2D *apBody) |
| void | SetParentBody (cBody2D *apBody) |
| void | SetCollideType (tFlag alFlag) |
| tFlag | GetCollideType () |
| void | AttachNode (cNode2D *apNode) |
| void | DetachNode () |
| int | GetID () |
| bool | OnGround () |
| void | UpdateCollisionMesh () |
| cCollisionMesh2D * | GetCollisionMesh () |
Public Member Functions inherited from hpl::iEntity2D | |
| iEntity2D (tString asName) | |
| virtual const cRect2f & | GetBoundingBox ()=0 |
| virtual bool | UpdateBoundingBox ()=0 |
| cVector3f & | GetLocalPosition () |
| cVector3f & | GetLocalRotation () |
| cVector3f & | GetLocalScale () |
| cVector3f | GetWorldPosition () |
| cVector3f | GetWorldRotation () |
| cVector3f | GetWorldScale () |
| void | SetPosition (const cVector3f &avPos) |
| void | SetRotation (const cVector3f &avRot) |
| void | SetScale (const cVector3f &avScale) |
| cGrid2DObject * | GetGrid2DObject () |
| void | SetGrid2DObject (cGrid2DObject *apGrid) |
| bool | HasGrid2DObject () |
Public Member Functions inherited from hpl::iEntity | |
| iEntity (tString asName) | |
| virtual tString | GetEntityType ()=0 |
| virtual void | UpdateLogic (float afTimeStep) |
| tString & | GetName () |
| void | SetName (const tString &asName) |
| iNode * | GetParent () |
| void | SetParent (iNode *apNode) |
| bool | HasParent () |
| bool | IsActive () |
| void | SetActive (bool abActive) |
| virtual bool | IsVisible () |
| virtual void | SetVisible (bool abVisible) |
| virtual iSaveData * | CreateSaveData () |
| virtual void | SaveToSaveData (iSaveData *apSaveData) |
| virtual void | LoadFromSaveData (iSaveData *apSaveData) |
| virtual void | SaveDataSetup (cSaveObjectHandler *apSaveObjectHandler, cGame *apGame) |
Public Member Functions inherited from hpl::iSaveObject | |
| int | GetSaveObjectId () |
| virtual void | SaveToSaveData (iSaveData *apSaveData) |
| virtual void | LoadFromSaveData (iSaveData *apSaveData) |
| virtual iSaveData * | CreateSaveData ()=0 |
| virtual void | SaveDataSetup (cSaveObjectHandler *apSaveObjectHandler, cGame *apGame) |
| void | SetIsSaved (bool abX) |
| bool | IsSaved () |
Additional Inherited Members | |
Protected Attributes inherited from hpl::iEntity2D | |
| cGrid2DObject * | mpGridObject |
| cVector3f | mvPosition |
| cVector3f | mvRotation |
| cVector3f | mvScale |
| cVector3f | mvLastPosition |
| cVector3f | mvLastRotation |
| cVector3f | mvLastScale |
| cRect2f | mBoundingBox |
Protected Attributes inherited from hpl::iEntity | |
| iNode * | mpParentNode |
| tString | msName |
| bool | mbIsVisible |
| bool | mbIsActive |
Protected Attributes inherited from hpl::iSaveObject | |
| iSaveData * | mpSaveData |
|
virtual |
Implements hpl::iEntity2D.
|
virtual |
Implements hpl::iEntity2D.
|
virtual |
Reimplemented from hpl::iEntity.
|
inlinevirtual |
Implements hpl::iEntity.
|
inline |
Sets the things that the body can collide with, default is eFlagBit_0 (tiles)
| alFlag |
|
inline |
Sets if the body is attached to moving obejcts and moves with the, default is false.
| abX |
|
inline |
Sets if other objects can attach themselves to this body. Default is true.
| abX |
|
inline |
Sets the types of collider the body is, default is eFlagBit_1. On collision checking, the other objects specify what it can collide with. And for every body this value is checked.
| alFlag |