aboutsummaryrefslogtreecommitdiff
path: root/game/entity.h
blob: 1fcf02609d70cbab4ac90fef9c6b9a87871ebf85 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef ENTITIES_H
#define ENTITIES_H

#include <vector>
#include <string>

#include "../umath/vec2.h"

class Ability {
    public:
    Ability();
};

class EntityInfo {
    public:
    EntityInfo() { spritebounds = vec2 { 16*6, 16 }; }
    
    std::string name;
    
    float hp;
    float attack;
    float defence;
    int range;
    float sight;
    int move;
    std::vector<Ability> abilities;
    
    vec2 spritebounds;
};

class Entity {
    public:
    Entity(int x, int y, EntityInfo &info, int owner) 
        : x(x), y(y), info(info), owner(owner) {}

    int x, y;
    bool done = false;
    EntityInfo &info;
    
    int owner;
};

#endif