22#ifndef ULTIMA3_DATA_ARENA_H
23#define ULTIMA3_DATA_ARENA_H
25#include "common/scummsys.h"
31constexpr int ARENA_SIZE = 11;
32constexpr int ARENA_MONSTERS = 8;
33constexpr int ARENA_PLAYERS = 4;
36constexpr byte ARENA_ABSENT = 0xFF;
44 byte _tiles[ARENA_SIZE * ARENA_SIZE] = {};
45 byte _monsterX[ARENA_MONSTERS] = {};
46 byte _monsterY[ARENA_MONSTERS] = {};
47 byte _monsterUnder[ARENA_MONSTERS] = {};
50 byte _monsterHp[ARENA_MONSTERS] = {};
52 byte _playerX[ARENA_PLAYERS] = {};
53 byte _playerY[ARENA_PLAYERS] = {};
54 byte _playerUnder[ARENA_PLAYERS] = {};
55 byte _playerTile[ARENA_PLAYERS] = {};
60 void load(
const char *filename);
62 byte tile(
int x,
int y)
const {
63 return _tiles[y * ARENA_SIZE + x];
66 void setTile(
int x,
int y,
byte value) {
67 _tiles[y * ARENA_SIZE + x] = value;
void load(const char *filename)