aboutsummaryrefslogtreecommitdiff
path: root/src/client/entity/entity.hh
blob: e8d6cc65a5fa4d4d4e272b21d10a466ae0b6678d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef CLIENT_ENTITY_ENTITY_HH_
#define CLIENT_ENTITY_ENTITY_HH_

#include "shared/entity/entity.hh"
#include "shared/entity/player.hh"

namespace client {

class player; // forward declaration

// A client::entity is a renderable shared::entity.
class entity : virtual public shared::entity {
public:
    entity(shared::entity& e) noexcept
        : shared::entity(std::forward<shared::entity>(e)) {}
    entity(const proto::entity& e) noexcept : shared::entity(e) {}

    virtual ~entity() noexcept {}

public:
    virtual void draw(const client::player& localplayer) noexcept = 0;
    virtual void draw_wts(const client::player& localplayer) noexcept = 0;
};

} // namespace client

#endif