diff options
author | Treeki <treeki@gmail.com> | 2011-08-14 00:46:44 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2011-08-14 00:46:44 +0200 |
commit | de4e75a4b26c9f52c515755bc3ac60c29fe8b645 (patch) | |
tree | d1be2c84bd2cbfecc52a529b14d2bbae97400266 /src | |
parent | c87e98e07df9554c0a33043d289d139b6aeb5699 (diff) | |
download | kamek-de4e75a4b26c9f52c515755bc3ac60c29fe8b645.tar.gz kamek-de4e75a4b26c9f52c515755bc3ac60c29fe8b645.zip |
forgot to remove this
Diffstat (limited to '')
-rw-r--r-- | src/randtiles.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/randtiles.h b/src/randtiles.h deleted file mode 100644 index 03005b2..0000000 --- a/src/randtiles.h +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef __NEWER_RANDTILES_H
-#define __NEWER_RANDTILES_H
-
-#include <common.h>
-
-class RandomTileData {
- enum Type {
- CHECK_NONE = 0,
- CHECK_HORZ = 1,
- CHECK_VERT = 2,
- CHECK_BOTH = 3
- };
-
- class Entry {
- u8 startTile, endTile;
- u8 count, type;
- u32 dataOffset;
-
- u8 *getData() {
- return ((u8*)this) + dataOffset;
- }
- };
-
- class Section {
- u32 nameHash;
- u32 nameOffset;
- u32 entryCount;
- Entry entries[1]; // variable size
-
- const char *getName() {
- return ((char*)this) + nameOffset;
- }
- };
-
- u32 magic;
- u32 sectionCount;
- u32 offsets[1]; // variable size
-
- Section *getSection(int id) {
- return (Section*)(((char*)this) + offsets[id]);
- }
-
- Section *getSection(char *name);
-};
-
-u32 djb2(u8 *str);
-
-
-#endif
|