|
@@ -27,7 +27,6 @@ class TileSetData |
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|
char *name; |
|
|
char *name; |
|
|
int ref; |
|
|
|
|
|
int *tiles; |
|
|
int *tiles; |
|
|
int ntiles; |
|
|
int ntiles; |
|
|
|
|
|
|
|
@@ -43,7 +42,6 @@ TileSet::TileSet(char const *path) |
|
|
{ |
|
|
{ |
|
|
data = new TileSetData(); |
|
|
data = new TileSetData(); |
|
|
data->name = strdup(path); |
|
|
data->name = strdup(path); |
|
|
data->ref = 0; |
|
|
|
|
|
data->tiles = NULL; |
|
|
data->tiles = NULL; |
|
|
data->ntiles = 0; |
|
|
data->ntiles = 0; |
|
|
data->img = NULL; |
|
|
data->img = NULL; |
|
@@ -77,16 +75,6 @@ TileSet::~TileSet() |
|
|
delete data; |
|
|
delete data; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void TileSet::Ref() |
|
|
|
|
|
{ |
|
|
|
|
|
data->ref++; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int TileSet::Unref() |
|
|
|
|
|
{ |
|
|
|
|
|
return --data->ref; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
char const *TileSet::GetName() |
|
|
char const *TileSet::GetName() |
|
|
{ |
|
|
{ |
|
|
return data->name; |
|
|
return data->name; |
|
|