2#include <game/bases/d_heap_allocator.hpp>
3#include <game/bases/d_actor.hpp>
dActor_c()
Constructs a new actor.
nw4r::g3d::ResFile mResFile
The resource file.
static const int LIFE_TIME
The life time of the bubble.
void createModel()
Initializes the resources for the actor.
void(dAwa_c::* CalcSpeed)()
The speed update function.
m3d::anmChr_c mBubbleAnim
The bubble animation.
virtual void deleteReady()
Informs the base that it's about to be deleted.
void setAnim()
Initializes the model animation.
dHeapAllocator_c mAllocator
The allocator.
int mLifeTimer
The amount of frames left before the bubble is deleted.
virtual int execute()
do method for the execute operation.
void calcSpeedDown()
Updates the bubble's speed (downwards direction).
virtual int draw()
do method for the draw operation.
void calcSpeedRight()
Updates the bubble's speed (rightwards direction).
void calc()
Updates the bubble's position and speed.
m3d::mdl_c mBubbleModel
The bubble model.
virtual ~dAwa_c()
Destroys the actor.
void calcSpeedUp()
Updates the bubble's speed (upwards direction).
void calcSpeedLeft()
Updates the bubble's speed (leftwards direction).
dAwa_c()
Constructs a new actor.
CalcSpeed mCalcSpeedFn
The speed update function.
virtual int doDelete()
do method for the delete operation.
virtual int create()
do method for the create operation.
ACTOR_PARAM_CONFIG(Direction, 0, 2)
The direction the bubble moves in.