diff options
| author | Japa | 2010-09-14 18:39:44 +0000 |
|---|---|---|
| committer | Japa | 2010-09-14 18:39:44 +0000 |
| commit | e9c9491e6feabf0728435acc0768e28a00f19322 (patch) | |
| tree | 446a3694d879e34adce78e0657f595e290d876e1 /SpriteObjects.h | |
| parent | 168a57fd59992b99f726ef9b8ae01fb0dbb957cd (diff) | |
| download | stonesense-e9c9491e6feabf0728435acc0768e28a00f19322.tar.gz stonesense-e9c9491e6feabf0728435acc0768e28a00f19322.tar.bz2 stonesense-e9c9491e6feabf0728435acc0768e28a00f19322.tar.xz | |
added options for sprites to work by light.
Diffstat (limited to 'SpriteObjects.h')
| -rw-r--r-- | SpriteObjects.h | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/SpriteObjects.h b/SpriteObjects.h index 37b2ef9..c31dddc 100644 --- a/SpriteObjects.h +++ b/SpriteObjects.h @@ -16,6 +16,11 @@ #define OUTLINELEFT 1
#define OUTLINERIGHT 2
#define OUTLINEBOTTOM 3
+
+#define LIGHTANY 0
+#define LIGHTYES 1
+#define LIGHTNO 2
+
class c_sprite
{
private:
@@ -41,13 +46,26 @@ private: int mudmin;
int mudmax;
+ unsigned int waterMin : 3;
+ unsigned int waterMax : 3;
+ unsigned int waterAboveMin : 3;
+ unsigned int waterAboveMax : 3;
+ unsigned int waterBelowMin : 3;
+ unsigned int waterBelowMax : 3;
+ unsigned int waterRightMin : 3;
+ unsigned int waterRightMax : 3;
+ unsigned int waterLeftMin : 3;
+ unsigned int waterLeftMax : 3;
+
bool needoutline;
bool randomanimation;
bool bloodsprite;
- char isoutline;
+ unsigned char isoutline : 2;
+
+ unsigned char halftile : 2;
- char halftile;
+ unsigned char light : 2;
ALLEGRO_BITMAP * defaultsheet;
@@ -59,6 +77,8 @@ private: uint8_t rampborders;
uint8_t upstairborders;
uint8_t downstairborders;
+ uint8_t lightborders;
+ uint8_t darkborders;
uint8_t notopenborders;
uint8_t notwallborders;
uint8_t notfloorborders;
|
