-
Notifications
You must be signed in to change notification settings - Fork 0
/
tile.h
45 lines (39 loc) · 1.03 KB
/
tile.h
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
44
45
//
// Created by ajeszny on 29.03.24.
//
#ifndef COCKOPOLIS_TILE_H
#define COCKOPOLIS_TILE_H
#include "includes.h"
#include "hood.h"
class Character;
class Player;
class Tile {
private:
string _tpath;
Player* _owner;
Hood _hood;
Character* _c;
int _unitclock;
int maxunitcap;
///Only for hero tiles
bool taken;
///Slould've done that by inheritance but who the fuck cares
bool hero;
public:
Tile(const char* path = "grassland.png", hood_card_descr::hood_type=hood_card_descr::NONE, hood_card_descr::hood_color=hood_card_descr::UNALIGNED);
const char* get_path();
void set_type(hood_card_descr::hood_type tp);
const char* get_hood();
const char* get_owner();
tile_saveable get_tile_info();
void increment();
void realign(hood_card_descr::hood_color n);
hood_card_descr::hood_color get_alignment();
void setchar(Character* c);
Character* getchar();
int units_ready();
///Called every turn
void update();
bool take_hero();
};
#endif //COCKOPOLIS_TILE_H