blob: 4556281558cce1ed054fc91817ee3ea384c84e15 (
plain) (
blame)
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
|
#ifndef TILE_PAGE_H
#define TILE_PAGE_H
#include <vector>
#include <string>
class tile;
class tile_page
{
public:
tile_page();
virtual ~tile_page();
bool place_images();
bool write_image(const char *filename);
int find(const std::string &enumname) const;
bool add_synonym(const std::string &enumname, const std::string &syn);
void add_variation(int var_idx, int base_idx, int colour);
std::vector<tile*> m_tiles;
std::vector<unsigned int> m_counts;
std::vector<int> m_texcoords;
std::vector<int> m_offsets;
std::vector<unsigned int> m_probs;
protected:
int m_width;
int m_height;
};
#endif
|