diff options
| author | Kris Parker | 2009-11-28 17:38:32 +0000 |
|---|---|---|
| committer | Kris Parker | 2009-11-28 17:38:32 +0000 |
| commit | f4de5db4c92392271919565faf0619f1db3ac210 (patch) | |
| tree | c7812c4d5b3eb3d3aee844804a11ddd4f746fe21 /ContentBuildingReader.cpp | |
| parent | 12472d1e4558278ca27f31a063f70e03ac82b9e1 (diff) | |
| download | stonesense-f4de5db4c92392271919565faf0619f1db3ac210.tar.gz stonesense-f4de5db4c92392271919565faf0619f1db3ac210.tar.bz2 stonesense-f4de5db4c92392271919565faf0619f1db3ac210.tar.xz | |
First pass at critter animation
Diffstat (limited to 'ContentBuildingReader.cpp')
| -rw-r--r-- | ContentBuildingReader.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/ContentBuildingReader.cpp b/ContentBuildingReader.cpp index 7b2dc37..43d7c51 100644 --- a/ContentBuildingReader.cpp +++ b/ContentBuildingReader.cpp @@ -134,25 +134,6 @@ int parseConditionNode(ConditionalNode* node, TiXmlElement* elemCondition, bool return -1;
}
-// converts list of characters 0-5 into bits, ignoring garbage
-// eg "035" or "0 3 5" or "0xx3x5" are all good
-inline char getAnimFrames(const char* framestring)
-{
- if (framestring == NULL)
- return ALL_FRAMES;
- char aframes=0;
- for (int i=0;i<6;i++)
- {
- if (framestring[i]==0)
- return aframes;
- char temp = framestring[i]-'0';
- if (temp < 0 || temp > 5)
- continue;
- aframes = aframes | (1 << temp);
- }
- return aframes;
-}
-
inline bool readNode(SpriteNode* node, TiXmlElement* elemNode, TiXmlElement* elemParent, SpriteBlock* &oldSibling)
{
const char* strType = elemNode->Value();
|
