-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tables.cpp
88 lines (63 loc) · 1.5 KB
/
Tables.cpp
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#include "Tables.h"
#include "Object.h"
#include "TileMapEx.h"
#include "TileMapResource.h"
const char *GetTilesObjectName(int id)
{
switch(id)
{
case TILE_MAP_ID:
return "TileMap";
case TILE_MAP_EXTENDED_ID:
return "TileMapEx";
case TILE_MAP_ANIMATION_ID:
return "TileMapAnimation";
case TILE_MAP_ANIMATION_EX_ID:
return "TileMapAnimationEx";
case TILE_MAP_PARTICLE_ID:
return "TileMapParticle";
case TILE_MAP_RESOURCE_ID:
return "TileMapResource";
}
return "";
}
const char *GetTileMapTypeName(int id)
{
switch (id)
{
case TILE_TYPE_EMPTY:
return "TILE_TYPE_EMPTY";
case TILE_TYPE_FULL:
return "TILE_TYPE_FULL";
case TILE_TYPE_22DEGREE_nn:
return "TILE_TYPE_22DEGREE_nn";
case TILE_TYPE_22DEGREE_np:
return "TILE_TYPE_22DEGREE_np";
case TILE_TYPE_22DEGREE_pn:
return "TILE_TYPE_22DEGREE_pn";
case TILE_TYPE_22DEGREE_pp:
return "TILE_TYPE_22DEGREE_pp";
case TILE_TYPE_45DEGREE_nn:
return "TILE_TYPE_45DEGREE_nn";
case TILE_TYPE_45DEGREE_np:
return "TILE_TYPE_45DEGREE_np";
case TILE_TYPE_45DEGREE_pn:
return "TILE_TYPE_45DEGREE_pn";
case TILE_TYPE_45DEGREE_pp:
return "TILE_TYPE_45DEGREE_pp";
}
return "";
}
const char *GetTileMapNameResType(int id)
{
switch (id)
{
case RESOURCE_TYPES::AID:
return "RESOURCE_TYPES::AID";
case RESOURCE_TYPES::ARMOUR:
return "RESOURCE_TYPES::AID";
case RESOURCE_TYPES::LIFES:
return "RESOURCE_TYPES::LIFES";
}
return "";
}