2#include <game/bases/d_actor_state.hpp>
dActorState_c()
Constructs a new actor.
virtual int doDelete()
do method for the delete operation.
ACTOR_PARAM_CONFIG(CoinNum, 8, 8)
The number of coins to collect.
COLLECT_TYPE_e mCollectType
The type of coins being tracked.
NICE_TYPE_e
The "Nice Coin" type of this actor.
@ TYPE_NICE_COIN_REGULAR
AC_NICE_COIN_REGULAR.
@ TYPE_NICE_COIN
AC_NICE_COIN.
int mReqBlueCoinNum
The number of blue coins that need to be collected.
virtual int create()
do method for the create operation.
virtual int execute()
do method for the execute operation.
int mCollectedCoinNum
The number of coins collected so far.
daNiceCoin_c()
Constructs a new actor.
ACTOR_PARAM_CONFIG(CollectionID, 0, 4)
The ID to pair coins with.
int mReqCoinNum
The number of coins that need to be collected.
int mCollectionID
The ID used to check for collected coins.
ACTOR_PARAM_CONFIG(BlueCoinNum, 16, 8)
The number of blue coins to collect.
NICE_TYPE_e mNiceType
The type of this actor.
virtual ~daNiceCoin_c()
Destroys the actor.
COLLECT_TYPE_e
The possible collection types.
@ TYPE_BOTH
Both normal and blue coins.
@ TYPE_NORMAL
Normal coins.
int mCollectedBlueCoinNum
The number of blue coins collected so far.
virtual int draw()
do method for the draw operation.
#define STATE_FUNC_DECLARE(class, name)
Declares a state.