#ifndef ROBOT_H_
#define ROBOT_H_
#include "Random.h"
#include <OgreEntity.h>
#include <OgreRoot.h>
#include <OgreSceneManager.h>
#include <string>
class Robot {
public:
Robot(Ogre::SceneManager* sceneMgr);
~Robot();
void update(const Ogre::FrameEvent &evt);
void setupAnimation();
int getId();
std::string getName();
bool nextLocation();
private:
Ogre::Real mDistance; Ogre::Vector3 mDirection; Ogre::Vector3 mDestination;
Ogre::AnimationState *mAnimationState;
Ogre::Entity *mEntity; Ogre::SceneNode *mNode; std::deque<Ogre::Vector3> mWalkList;
Ogre::Real mWalkSpeed;
bool mIsWalking;
int mId;
std::string mName;
static Random sRand; static int sNextID;
};
#endif