#include <cmpHead.h>

Public Member Functions | ||||
| CCmpHead (CGameEntity *pGE) | ||||
| Create with default values. | ||||
| void | ang_offset (const unit pan, const unit tilt, const unit roll) | |||
| void | tilt (const unit tilt) | |||
| ||||
| const CAngle3D & | ang_offset () | |||
| ||||
| CAngle3D | ang () const | |||
| ||||
| void | ang_limit (const int pan, const int tilt=-1, const int roll=-1) | |||
| void | ang_limit () | |||
| Apply ang limits. | ||||
| void | pos_offset (const unit x, const unit y, const unit z) | |||
| CVector3D | pos () const | |||
| ||||
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. | ||||
(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.
| int CCmpHead::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 CCmpHead::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 CCmpHead::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.
| void CCmpHead::ang_offset | ( | const unit | pan, | |
| const unit | tilt, | |||
| const unit | roll | |||
| ) | [inline] |
Set the head angle offset from the current entity facing
| pan | Head Angle's new pan | |
| tilt | Head Angle's new tilt | |
| roll | Head Angle's new roll |
| void CCmpHead::ang_limit | ( | const int | pan, | |
| const int | tilt = -1, |
|||
| const int | roll = -1 | |||
| ) | [inline] |
Set the head angle limits (0 = fixed, -1 = free)
| pan | Pan limit | |
| tilt | Tilt limit | |
| roll | Roll limit |
| void CCmpHead::pos_offset | ( | const unit | x, | |
| const unit | y, | |||
| const unit | z | |||
| ) | [inline] |
Set the head pos offset
| x | Head Pos's new x | |
| y | Head Pos's new y | |
| z | Head Pos's new z |
1.5.4