class LocalPlayer : public Player
{
public:
- LocalPlayer(IGameDef *gamedef);
+ LocalPlayer(IGameDef *gamedef, const char *name);
virtual ~LocalPlayer();
bool isLocal() const
{
return true;
}
-
+
ClientActiveObject *parent;
bool isAttached;
void move(f32 dtime, Environment *env, f32 pos_max_d);
void move(f32 dtime, Environment *env, f32 pos_max_d,
- std::list<CollisionInfo> *collision_info);
+ std::vector<CollisionInfo> *collision_info);
void applyControl(float dtime);
unsigned int last_keyPressed;
float camera_impact;
- v3f eye_offset_first;
- v3f eye_offset_third;
int last_animation;
float last_animation_speed;
std::string hotbar_image;
std::string hotbar_selected_image;
+ video::SColor light_color;
+
GenericCAO* getCAO() const {
return m_cao;
}
void setCAO(GenericCAO* toset) {
- assert( m_cao == NULL );
+ assert( m_cao == NULL ); // Pre-condition
m_cao = toset;
}