From de4e75a4b26c9f52c515755bc3ac60c29fe8b645 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sun, 14 Aug 2011 00:46:44 +0200 Subject: forgot to remove this --- src/randtiles.h | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 src/randtiles.h (limited to 'src') 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 - -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 -- cgit v1.2.3