diff options
| author | Jonas Ask | 2009-10-21 00:05:12 +0000 |
|---|---|---|
| committer | Jonas Ask | 2009-10-21 00:05:12 +0000 |
| commit | 94810c064d19b0ffd846a4c3301a70477cc88e4a (patch) | |
| tree | 0518a28966217a020a4381f8d0cf41f429d5abf9 /ConditionalSprite.h | |
| parent | e4614f535d4be2d015144a6bb2fe57bfdedd7b16 (diff) | |
| download | stonesense-94810c064d19b0ffd846a4c3301a70477cc88e4a.tar.gz stonesense-94810c064d19b0ffd846a4c3301a70477cc88e4a.tar.bz2 stonesense-94810c064d19b0ffd846a4c3301a70477cc88e4a.tar.xz | |
Started the work on a configurable building system.
Buildings are defined using xml files, which are parsed by Stonesense.
Diffstat (limited to 'ConditionalSprite.h')
| -rw-r--r-- | ConditionalSprite.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ConditionalSprite.h b/ConditionalSprite.h index 11209ec..efd6018 100644 --- a/ConditionalSprite.h +++ b/ConditionalSprite.h @@ -4,15 +4,18 @@ class ConditionalSprite {
private:
bool matchPosition(Block* b);
- bool matchMaterial(Block* b);
+ bool matchMaterialType(Block* b);
bool matchNeighbourHasWall(Block* b);
public:
- int spriteIndex;
- int cMaterial;
+ int spriteIndex;
+
+ int cMaterialType;
+ int cMaterialIndex;
bool cOnWesternEdge;
int cPositionIndex;
dirTypes cNeighbourHasWall;
+
ConditionalSprite(void);
~ConditionalSprite(void){}
|
