push de test pour les animations

This commit is contained in:
Claudel-D-Roy
2023-11-13 16:02:13 -05:00
parent d49d5cdebc
commit dfd2ddc8af
6 changed files with 80 additions and 7 deletions

View File

@@ -5,15 +5,24 @@
#include "define.h"
#include "textureatlas.h"
#include "shader.h"
#include "texture.h"
#include "openglcontext.h"
class RemotePlayer : public Player {
public:
enum Anim: uint8_t { STILL = 1, RUNNING = 2, JUMPING = 4, SHOOTING = 8, POWERUP = 16, DEAD = 32 };
/*RemotePlayer();*/
RemotePlayer(netprot::PlayerInfo pinfo);
~RemotePlayer();
void Init();
void Feed(const netprot::Output out);
void Render(TextureAtlas& atlas, Shader& shader, float elapsedTime);
bool LoadTexture(Texture& texture, const std::string& filename, bool useMipmaps, bool stopOnError);
private:
netprot::Output current, previous;
@@ -22,6 +31,8 @@ private:
float m_aminacc;
Anim m_animstate;
uint64_t m_team_id;
Texture m_texture_front;
};
#endif