diff options
| author | Petr Mrázek | 2012-02-19 17:58:03 +0100 |
|---|---|---|
| committer | Petr Mrázek | 2012-02-19 17:58:03 +0100 |
| commit | f370a56b150a399c47679135f29b4d5e99b30931 (patch) | |
| tree | 4db6e818f649cb205146b5cc5729089d8133ea3b /ConditionalSprite.h | |
| parent | 44f7c01eeb396fadfcf2ddf5b4a6058fa33fcd7f (diff) | |
| download | stonesense-f370a56b150a399c47679135f29b4d5e99b30931.tar.gz stonesense-f370a56b150a399c47679135f29b4d5e99b30931.tar.bz2 stonesense-f370a56b150a399c47679135f29b4d5e99b30931.tar.xz | |
Fix building type matching
Diffstat (limited to 'ConditionalSprite.h')
| -rw-r--r-- | ConditionalSprite.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ConditionalSprite.h b/ConditionalSprite.h index 552e1b3..a93ff4b 100644 --- a/ConditionalSprite.h +++ b/ConditionalSprite.h @@ -11,7 +11,7 @@ class SpriteNode // this returns true if the sprite matched, and also adds
// sprites to the block as required
- virtual bool BlockMatches(Block* b)=0;
+ virtual bool copyToBlock(Block* b)=0;
// adds a child if appropriate (vestigial in some cases)
virtual void addChild(SpriteNode* child){};
};
@@ -25,7 +25,7 @@ class RootBlock : public SpriteNode RootBlock(void);
~RootBlock(void);
- bool BlockMatches(Block* b);
+ bool copyToBlock(Block* b);
void addChild(SpriteNode* child);
};
@@ -40,7 +40,7 @@ class SpriteBlock : public ConditionalNode, public SpriteNode SpriteBlock(void);
~SpriteBlock(void);
- bool BlockMatches(Block* b);
+ bool copyToBlock(Block* b);
bool addCondition(BlockCondition* cond);
void addChild(SpriteNode* child);
void addElse(SpriteNode* child);
@@ -55,7 +55,7 @@ class RotationBlock : public ConditionalNode, public SpriteNode RotationBlock(void);
~RotationBlock(void);
- bool BlockMatches(Block* b);
+ bool copyToBlock(Block* b);
bool addCondition(BlockCondition* cond);
void addChild(SpriteNode* child);
};
@@ -71,5 +71,5 @@ public: SpriteElement(void);
~SpriteElement(void){};
- bool BlockMatches(Block* b);
+ bool copyToBlock(Block* b);
};
|
