2005-02-20 10:56:59 +00:00
|
|
|
/* ScummVM - Scumm Interpreter
|
|
|
|
* Copyright (C) 2001 Ludvig Strigeus
|
|
|
|
* Copyright (C) 2001-2005 The ScummVM project
|
|
|
|
*
|
|
|
|
* 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$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SPRITE_HE_H
|
|
|
|
#define SPRITE_HE_H
|
|
|
|
|
|
|
|
namespace Scumm {
|
|
|
|
|
2005-02-20 15:05:18 +00:00
|
|
|
enum SpriteFlags {
|
2005-02-24 21:05:29 +00:00
|
|
|
kSFChanged = (1 << 0),
|
2005-02-22 01:23:15 +00:00
|
|
|
kSFNeedRedraw = (1 << 1),
|
|
|
|
kSF03 = (1 << 2),
|
|
|
|
kSF04 = (1 << 3),
|
|
|
|
kSFZoomed = (1 << 4),
|
|
|
|
kSFRotated = (1 << 5),
|
|
|
|
kSF07 = (1 << 6),
|
|
|
|
kSF08 = (1 << 7),
|
|
|
|
kSF09 = (1 << 8),
|
|
|
|
kSF10 = (1 << 9),
|
|
|
|
kSF11 = (1 << 10),
|
|
|
|
kSF12 = (1 << 11),
|
|
|
|
kSF13 = (1 << 12),
|
2005-03-13 13:10:39 +00:00
|
|
|
kSFYFlipped = (1 << 13),
|
|
|
|
kSFXFlipped = (1 << 14),
|
2005-02-24 21:05:29 +00:00
|
|
|
kSFActive = (1 << 15),
|
2005-02-22 01:23:15 +00:00
|
|
|
kSF17 = (1 << 16),
|
|
|
|
kSF18 = (1 << 17),
|
|
|
|
kSF19 = (1 << 18),
|
|
|
|
kSF20 = (1 << 19),
|
|
|
|
kSF21 = (1 << 20),
|
2005-03-13 12:59:25 +00:00
|
|
|
kSF22 = (1 << 21),
|
|
|
|
kSF23 = (1 << 22),
|
2005-02-22 01:23:15 +00:00
|
|
|
kSF24 = (1 << 23),
|
|
|
|
kSF25 = (1 << 24),
|
|
|
|
kSFBlitDirectly = (1 << 25),
|
|
|
|
kSF27 = (1 << 26),
|
|
|
|
kSF28 = (1 << 27),
|
|
|
|
kSF29 = (1 << 28),
|
|
|
|
kSF30 = (1 << 29),
|
2005-02-26 11:05:13 +00:00
|
|
|
kSFImageless = (1 << 30),
|
2005-02-22 01:23:15 +00:00
|
|
|
kSF32 = (1 << 31)
|
2005-02-20 15:05:18 +00:00
|
|
|
};
|
|
|
|
|
2005-02-20 22:16:31 +00:00
|
|
|
enum SpriteGroupFlags {
|
2005-02-26 11:22:00 +00:00
|
|
|
kSGFClipBox = 1 << 0,
|
|
|
|
kSGFNeedRedraw = 1 << 1
|
2005-02-20 22:16:31 +00:00
|
|
|
};
|
|
|
|
|
2005-02-20 10:56:59 +00:00
|
|
|
struct SpriteInfo {
|
2005-03-07 11:34:23 +00:00
|
|
|
int id;
|
2005-02-26 11:22:00 +00:00
|
|
|
int zorder;
|
2005-02-20 10:56:59 +00:00
|
|
|
int flags;
|
|
|
|
int res_id;
|
|
|
|
int res_state;
|
|
|
|
int group_num;
|
|
|
|
int field_14;
|
2005-03-14 12:54:24 +00:00
|
|
|
int zorderPriority;
|
2005-02-24 04:04:17 +00:00
|
|
|
Common::Rect bbox;
|
2005-02-22 21:38:44 +00:00
|
|
|
int dx;
|
|
|
|
int dy;
|
2005-02-27 03:36:33 +00:00
|
|
|
Common::Point pos;
|
2005-02-20 10:56:59 +00:00
|
|
|
int tx;
|
|
|
|
int ty;
|
|
|
|
int field_44;
|
2005-02-27 03:36:33 +00:00
|
|
|
int cur_img_state;
|
2005-03-06 04:31:02 +00:00
|
|
|
int cur_res_id;
|
2005-02-20 10:56:59 +00:00
|
|
|
int imglist_num;
|
|
|
|
int field_54;
|
2005-02-20 15:05:18 +00:00
|
|
|
int res_wiz_states;
|
2005-02-20 10:56:59 +00:00
|
|
|
int rot_angle;
|
|
|
|
int zoom;
|
2005-03-14 12:54:24 +00:00
|
|
|
int delayCount;
|
2005-03-06 04:31:02 +00:00
|
|
|
int cur_rot_angle;
|
|
|
|
int cur_zoom;
|
2005-02-24 04:04:17 +00:00
|
|
|
int imgFlags;
|
2005-02-20 10:56:59 +00:00
|
|
|
int field_74;
|
2005-03-14 12:54:24 +00:00
|
|
|
int delayAmount;
|
2005-02-20 10:56:59 +00:00
|
|
|
int field_7C;
|
|
|
|
int field_80;
|
|
|
|
int class_flags;
|
2005-02-23 09:23:54 +00:00
|
|
|
int field_88;
|
2005-02-23 11:15:41 +00:00
|
|
|
int field_8C;
|
|
|
|
int field_90;
|
2005-02-20 10:56:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct SpriteGroup {
|
2005-02-24 23:28:56 +00:00
|
|
|
Common::Rect bbox;
|
2005-02-26 11:22:00 +00:00
|
|
|
int zorderPriority;
|
2005-02-20 10:56:59 +00:00
|
|
|
int flags;
|
|
|
|
int tx;
|
|
|
|
int ty;
|
|
|
|
int field_20;
|
|
|
|
int scaling;
|
|
|
|
int scale_x;
|
|
|
|
int scale_y;
|
2005-02-26 11:22:00 +00:00
|
|
|
int scale_x_ratio_mul;
|
|
|
|
int scale_x_ratio_div;
|
|
|
|
int scale_y_ratio_mul;
|
|
|
|
int scale_y_ratio_div;
|
2005-02-20 10:56:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // End of namespace Scumm
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|