22 #ifndef ULTIMA0_DATA_H 23 #define ULTIMA0_DATA_H 25 #include "common/array.h" 26 #include "common/keyboard.h" 27 #include "common/rect.h" 28 #include "common/serializer.h" 29 #include "ultima/ultima0/data/defines.h" 34 enum Direction { DIR_NORTH, DIR_EAST, DIR_SOUTH, DIR_WEST };
51 extern const char *ATTRIB_NAMES[];
52 extern const char *
const DIRECTION_NAMES[];
71 void addMonster(
const PlayerInfo &player,
int type);
72 int generateContent(
int c);
75 byte _map[DUNGEON_MAP_SIZE][DUNGEON_MAP_SIZE] = {};
93 char _name[MAX_NAME + 1] = {};
102 bool _taskCompleted = 0;
103 uint32 _luckyNumber = 0;
104 int _attr[MAX_ATTR] = {};
105 double _object[MAX_OBJ] = {};
108 void rollAttributes();
114 Direction dungeonDir()
const;
119 void setDungeonDir(Direction newDir);
124 void dungeonTurnLeft();
129 void dungeonTurnRight();
136 byte _map[WORLD_MAP_SIZE][WORLD_MAP_SIZE] = {};
139 int read(
int x,
int y)
const;
Definition: serializer.h:79
Definition: detection.h:27