SQCSimulator2023/SQCSim2021/remoteplayer.h

26 lines
574 B
C
Raw Normal View History

2023-10-03 12:43:54 -04:00
#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:
2023-10-23 15:35:31 -04:00
enum Anim { STILL = 1, RUNNING = 2, JUMPING = 4, SHOOTING = 8, POWERUP = 16, DEAD = 32 };
2023-10-03 12:43:54 -04:00
2023-10-27 14:37:53 -04:00
RemotePlayer(netprot::PlayerInfo pinfo);
2023-10-03 12:43:54 -04:00
void Init();
void Feed(const netprot::Output out);
private:
2023-10-23 15:35:31 -04:00
netprot::Output current, previous;
2023-10-27 14:37:53 -04:00
netprot::PlayerInfo m_pinfo;
2023-10-03 12:43:54 -04:00
float m_aminacc;
Anim m_animstate;
uint64_t m_team_id;
};
#endif