summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/randtiles.h49
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