2002-03-21 16:12:02 +00:00
|
|
|
/* ScummVM - Scumm Interpreter
|
|
|
|
* Copyright (C) 2001 Ludvig Strigeus
|
2004-01-06 12:45:34 +00:00
|
|
|
* Copyright (C) 2001-2004 The ScummVM project
|
2002-03-21 16:12:02 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*
|
|
|
|
* $Header$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2002-07-16 17:59:28 +00:00
|
|
|
#ifndef BOXES_H
|
|
|
|
#define BOXES_H
|
2002-05-01 00:13:03 +00:00
|
|
|
|
2003-05-15 21:57:38 +00:00
|
|
|
#include "common/rect.h"
|
|
|
|
|
2003-10-03 18:33:57 +00:00
|
|
|
namespace Scumm {
|
|
|
|
|
2003-05-09 21:46:34 +00:00
|
|
|
#define SIZEOF_BOX_V2 8
|
|
|
|
#define SIZEOF_BOX_V3 18
|
2002-03-21 16:12:02 +00:00
|
|
|
#define SIZEOF_BOX 20
|
2003-05-09 21:46:34 +00:00
|
|
|
#define SIZEOF_BOX_V8 52
|
2002-05-01 00:13:03 +00:00
|
|
|
|
2002-08-15 16:46:29 +00:00
|
|
|
typedef enum {
|
|
|
|
kBoxXFlip = 0x08,
|
|
|
|
kBoxYFlip = 0x10,
|
2003-11-01 01:17:15 +00:00
|
|
|
kBoxIgnoreScale = 0x20,
|
2002-08-15 16:46:29 +00:00
|
|
|
kBoxPlayerOnly = 0x20,
|
|
|
|
kBoxLocked = 0x40,
|
2002-12-25 00:36:04 +00:00
|
|
|
kBoxInvisible = 0x80
|
2002-08-15 16:46:29 +00:00
|
|
|
} BoxFlags;
|
|
|
|
|
2002-03-21 16:12:02 +00:00
|
|
|
struct BoxCoords { /* Box coordinates */
|
2003-10-02 17:43:02 +00:00
|
|
|
Common::Point ul;
|
|
|
|
Common::Point ur;
|
|
|
|
Common::Point ll;
|
|
|
|
Common::Point lr;
|
2002-03-21 16:12:02 +00:00
|
|
|
};
|
|
|
|
|
2003-10-03 18:33:57 +00:00
|
|
|
} // End of namespace Scumm
|
|
|
|
|
2002-07-16 17:59:28 +00:00
|
|
|
#endif
|