| 49 | } |
| 50 | |
| 51 | void MovableGameEntity::tileToVector3(const std::list<Tile*>& tiles, std::vector<Ogre::Vector3>& path, |
| 52 | bool skipFirst, Ogre::Real z) |
| 53 | { |
| 54 | for(Tile* tile : tiles) |
| 55 | { |
| 56 | if(skipFirst) |
| 57 | { |
| 58 | skipFirst = false; |
| 59 | continue; |
| 60 | } |
| 61 | |
| 62 | Ogre::Vector3 dest(static_cast<Ogre::Real>(tile->getX()), static_cast<Ogre::Real>(tile->getY()), z); |
| 63 | path.push_back(dest); |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | void MovableGameEntity::setWalkPath(const std::string& walkAnim, const std::string& endAnim, bool loopEndAnim, |
| 68 | bool playIdleWhenAnimationEnds, const std::vector<Ogre::Vector3>& path) |
no test coverage detected