#include <animationEvent.h>

Create methods | ||||
| static CAnimationEvent * | create (CXMLNode &node) | |||
| CAnimationEvent () | ||||
| CAnimationEvent (const float f) | ||||
Public Types | ||||
| enum | eType { kNone, kSound } | |||
| Type of Event. More... | ||||
Public Member Functions | ||||
| virtual eType | type () | |||
| ||||
| void | trigPoint (const float f) | |||
| ||||
| float | trigPoint () const | |||
| ||||
| virtual void | run (CGameEntity *pGE) const =0 | |||
| bool | run (CGameEntity *pGE, const unit start, const unit end) const | |||
Protected Attributes | ||||
| float | m_fPer | |||
| Trigger point (percent in animation when triggered). | ||||
Animation events happen at points in the GE's animation cycle.
(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.
| CAnimationEvent * CAnimationEvent::create | ( | CXMLNode & | node | ) | [static] |
| node | XML node of an animation event element. |
| virtual void CAnimationEvent::run | ( | CGameEntity * | pGE | ) | const [pure virtual] |
Run event.
| pGE | Pointer to the GE that this effect if coming from. |
Implemented in CAnimationEventSound.
| bool CAnimationEvent::run | ( | CGameEntity * | pGE, | |
| const unit | start, | |||
| const unit | end | |||
| ) | const |
Run event only if its trigger point falls between the two values passed in.
| start | Starting percent. | |
| end | Ending percent. | |
| pGE | Pointer to the GE that this effect if coming from. |
1.5.4