use enum instead of define (purely cosmetic)

svn-id: r11374
This commit is contained in:
Gregory Montoir 2003-11-26 20:41:54 +00:00
parent 871c4f8342
commit ddc2e736fb

View File

@ -30,13 +30,6 @@
namespace Queen {
#define MAX_BANK_SIZE 110
#define MAX_FRAMES_NUMBER 256
#define MAX_BANKS_NUMBER 18
#define MAX_BOBS_NUMBER 64
struct BobFrame {
uint16 width, height;
uint16 xhotspot, yhotspot;
@ -193,15 +186,19 @@ public:
void update(uint16 room);
private:
enum {
MAX_STRING_LENGTH = 255,
MAX_STRING_SIZE = (MAX_STRING_LENGTH + 1),
MAX_BANK_SIZE = 110,
MAX_FRAMES_NUMBER = 256,
MAX_BANKS_NUMBER = 18,
MAX_BOBS_NUMBER = 64,
MAX_STRING_LENGTH = 255,
MAX_STRING_SIZE = (MAX_STRING_LENGTH + 1),
BOB_SHRINK_BUF_SIZE = 60000
};
private:
struct PackedBank {
uint32 indexes[MAX_BANK_SIZE];
uint8 *data;