diff options
| author | Japa | 2010-04-09 14:12:29 +0000 |
|---|---|---|
| committer | Japa | 2010-04-09 14:12:29 +0000 |
| commit | 81aefc8e03ff3f647494012e18bcdc8f33f4de42 (patch) | |
| tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /ConditionalSprite.h | |
| parent | c3d0b7d6778af46299901d959d589d6599afa21c (diff) | |
| download | stonesense-81aefc8e03ff3f647494012e18bcdc8f33f4de42.tar.gz stonesense-81aefc8e03ff3f647494012e18bcdc8f33f4de42.tar.bz2 stonesense-81aefc8e03ff3f647494012e18bcdc8f33f4de42.tar.xz | |
There is no trunk
it is not the code that compiles, it is you.
Diffstat (limited to 'ConditionalSprite.h')
| -rw-r--r-- | ConditionalSprite.h | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/ConditionalSprite.h b/ConditionalSprite.h deleted file mode 100644 index 56ac1e1..0000000 --- a/ConditionalSprite.h +++ /dev/null @@ -1,75 +0,0 @@ -#pragma once
-
-#include "BlockCondition.h"
-
-// generic superclass
-class SpriteNode
-{
- public:
- SpriteNode(void){};
- virtual ~SpriteNode(void){};
-
- // this returns true if the sprite matched, and also adds
- // sprites to the block as required
- virtual bool BlockMatches(Block* b)=0;
- // adds a child if appropriate (vestigial in some cases)
- virtual void addChild(SpriteNode* child){};
-};
-
-// root nesting structure
-class RootBlock : public SpriteNode
-{
- vector<SpriteNode*> children;
-
- public:
- RootBlock(void);
- ~RootBlock(void);
-
- bool BlockMatches(Block* b);
- void addChild(SpriteNode* child);
-};
-
-// nesting conditional structure
-class SpriteBlock : public ConditionalNode, public SpriteNode
-{
- BlockCondition* conditions;
- vector<SpriteNode*> children;
- SpriteNode* elsenode;
-
- public:
- SpriteBlock(void);
- ~SpriteBlock(void);
-
- bool BlockMatches(Block* b);
- bool addCondition(BlockCondition* cond);
- void addChild(SpriteNode* child);
- void addElse(SpriteNode* child);
-};
-
-// rotational conditional structure
-class RotationBlock : public ConditionalNode, public SpriteNode
-{
- vector<SpriteNode*> children;
-
- public:
- RotationBlock(void);
- ~RotationBlock(void);
-
- bool BlockMatches(Block* b);
- bool addCondition(BlockCondition* cond);
- void addChild(SpriteNode* child);
-};
-
-// display element
-class SpriteElement : public SpriteNode
-{
-private:
-
-public:
- t_SpriteWithOffset sprite;
-
- SpriteElement(void);
- ~SpriteElement(void){};
-
- bool BlockMatches(Block* b);
-};
|
