A bit of an architectural change before we progress further. Moved player code into a shared PlayerBass class to elimnate some severe code duplication while i was getting things working.
17 lines
309 B
C++
17 lines
309 B
C++
#pragma once
|
|
|
|
#include "bettola/game/player_base.h"
|
|
|
|
class RemotePlayer : public PlayerBase {
|
|
public:
|
|
RemotePlayer(unsigned int id, float x, float y);
|
|
|
|
void update(double dt);
|
|
void set_target_position(float x, float y, float yaw);
|
|
|
|
private:
|
|
float _target_x;
|
|
float _target_y;
|
|
float _target_yaw;
|
|
};
|