Go to the documentation of this file.00001 #ifndef __NYTRO_Player_H
00002 #define __NYTRO_Player_H
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "system/nyCommon.h"
00012 #include "system/nyBase.h"
00013
00014 namespace Nytro
00015 {
00016 namespace Game
00017 {
00019 class NYTRO_API PlayerAction
00020 {
00021 public:
00022
00023 PlayerAction();
00024
00026 uint32 m_id;
00028 vector<float32> m_params;
00029 };
00030
00032 class NYTRO_API Player
00033 {
00034 public:
00035
00036 Player();
00037 virtual ~Player();
00038
00040 virtual void executeAction( PlayerAction& rAction );
00042 void setActionRecording( bool bValue = true );
00044 void setLife( int8 aLife );
00046 void setCurrentLifeCount( int8 aValue );
00048 bool isActionRecording();
00050 int8 getLife();
00052 int8 getCurrentLifeCount();
00054 vector<PlayerAction>& getRecordedActions();
00055
00056 protected:
00057
00059 vector<PlayerAction> m_recordedActions;
00061 int8 m_life,
00063 m_currentLifeCount;
00065 bool m_bRecordingActions;
00066 };
00067 };
00068 };
00069
00070 #endif