summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-08-14 00:46:44 +0200
committerTreeki <treeki@gmail.com>2011-08-14 00:46:44 +0200
commitde4e75a4b26c9f52c515755bc3ac60c29fe8b645 (patch)
treed1be2c84bd2cbfecc52a529b14d2bbae97400266 /src
parentc87e98e07df9554c0a33043d289d139b6aeb5699 (diff)
downloadkamek-de4e75a4b26c9f52c515755bc3ac60c29fe8b645.tar.gz
kamek-de4e75a4b26c9f52c515755bc3ac60c29fe8b645.zip
forgot to remove this
Diffstat (limited to '')
-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