26 lines
574 B
C++
26 lines
574 B
C++
#ifndef REMOTEPLAYER_H__
|
|
#define REMOTEPLAYER_H__
|
|
#include "../SQCSim-common/player.h"
|
|
#include "../SQCSim-common/netprotocol.h"
|
|
#include "define.h"
|
|
#include "textureatlas.h"
|
|
#include "shader.h"
|
|
|
|
class RemotePlayer : public Player {
|
|
public:
|
|
enum Anim { STILL = 1, RUNNING = 2, JUMPING = 4, SHOOTING = 8, POWERUP = 16, DEAD = 32 };
|
|
|
|
RemotePlayer(netprot::PlayerInfo pinfo);
|
|
|
|
void Init();
|
|
void Feed(const netprot::Output out);
|
|
|
|
private:
|
|
netprot::Output current, previous;
|
|
netprot::PlayerInfo m_pinfo;
|
|
float m_aminacc;
|
|
Anim m_animstate;
|
|
uint64_t m_team_id;
|
|
|
|
};
|
|
#endif |