diff options
| author | Jonas Ask | 2009-10-20 19:20:35 +0000 |
|---|---|---|
| committer | Jonas Ask | 2009-10-20 19:20:35 +0000 |
| commit | e4614f535d4be2d015144a6bb2fe57bfdedd7b16 (patch) | |
| tree | c7bcd6f78bc1e11a490d4e7d38bda895aac80037 /ConditionalSprite.h | |
| parent | 2489644b5df063a2471f6b7a76a5212f4af60f71 (diff) | |
| download | stonesense-e4614f535d4be2d015144a6bb2fe57bfdedd7b16.tar.gz stonesense-e4614f535d4be2d015144a6bb2fe57bfdedd7b16.tar.bz2 stonesense-e4614f535d4be2d015144a6bb2fe57bfdedd7b16.tar.xz | |
Started work on XML building configurations.
Diffstat (limited to 'ConditionalSprite.h')
| -rw-r--r-- | ConditionalSprite.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ConditionalSprite.h b/ConditionalSprite.h new file mode 100644 index 0000000..11209ec --- /dev/null +++ b/ConditionalSprite.h @@ -0,0 +1,21 @@ +#pragma once
+
+class ConditionalSprite
+{
+private:
+ bool matchPosition(Block* b);
+ bool matchMaterial(Block* b);
+ bool matchNeighbourHasWall(Block* b);
+
+public:
+ int spriteIndex;
+ int cMaterial;
+ bool cOnWesternEdge;
+ int cPositionIndex;
+ dirTypes cNeighbourHasWall;
+
+ ConditionalSprite(void);
+ ~ConditionalSprite(void){}
+
+ bool BlockMatches(Block* b);
+};
|
