push de test pour les animations
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user