Architecture générale

This commit is contained in:
MarcEricMartel
2023-10-03 12:43:54 -04:00
parent 54c25e6f78
commit 183c5f186a
11 changed files with 93 additions and 37 deletions

25
SQCSim2021/remoteplayer.h Normal file
View File

@@ -0,0 +1,25 @@
#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, RUNNING, JUMPING, SHOOTING, JUMPSHOOT, DEAD };
RemotePlayer();
void Init();
void Feed(const netprot::Output out);
private:
netprot::Output current, next;
float m_aminacc;
Anim m_animstate;
uint64_t m_team_id;
};
#endif