BWAPI
trunk/bwapi/BWAPI/Source/BW/Sprite.h
Go to the documentation of this file.
00001 #pragma once
00002 #include "Position.h"
00003 #include "Image.h"
00004 
00005 namespace BW { class Image; };
00006 
00007 #pragma pack(1)
00008 namespace BW
00009 {
00010   class Sprite
00011   {
00012   public:
00013     /*0x00*/ Sprite    *prev;
00014     /*0x04*/ Sprite    *next;
00015     /*0x08*/ u16       spriteID;
00016     /*0x0A*/ u8        playerID;
00017     /*0x0B*/ u8        selectionIndex; //0 <= selectionIndex <= 11. Index in the selection area at bottom of screen.
00018     /*0x0C*/ u8        visibilityFlags;
00019     /*0x0D*/ u8        elevationLevel;
00020     /*0x0E*/ u8        flags; 
00021                        /*   0x01  Draw selection circle.
00022                             0x02  
00023                             0x04  
00024                             0x08  Selected.
00025                             0x10  
00026                             0x20  Hidden
00027                             0x40  Burrowed
00028                             0x80  Iscript unbreakable code section.
00029                        */
00030     /*0x0F*/ u8        selectionTimer;
00031     /*0x10*/ u32       index;
00032     /*0x14*/ Position  position;
00033     /*0x18*/ Image     *mainGraphic;
00034     /*0x1C*/ Image     *underlay;
00035     /*0x20*/ Image     *overlay;
00036   };
00037 
00038   CTASSERT( sizeof(Sprite) == 36 );
00039 };
00040 #pragma pack()
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines