2011-01-08 15:11:37 +01:00
|
|
|
#ifndef GAME_MWRENDER_PLAYER_H
|
|
|
|
#define GAME_MWRENDER_PLAYER_H
|
|
|
|
|
2011-02-10 12:56:19 +01:00
|
|
|
#include <iostream>
|
2011-11-16 21:15:49 -05:00
|
|
|
#include <Ogre.h>
|
2011-02-10 12:56:19 +01:00
|
|
|
|
2011-01-08 15:11:37 +01:00
|
|
|
namespace Ogre
|
|
|
|
{
|
|
|
|
class Camera;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWRender
|
|
|
|
{
|
|
|
|
/// \brief Player character rendering and camera control
|
|
|
|
class Player
|
|
|
|
{
|
|
|
|
Ogre::Camera *mCamera;
|
2011-11-16 21:15:49 -05:00
|
|
|
Ogre::SceneNode* mNode;
|
2011-01-08 15:11:37 +01:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
2011-11-16 21:15:49 -05:00
|
|
|
Player (Ogre::Camera *camera, Ogre::SceneNode* mNode);
|
2011-01-08 15:11:37 +01:00
|
|
|
|
|
|
|
Ogre::Camera *getCamera() { return mCamera; }
|
2011-02-10 12:56:19 +01:00
|
|
|
|
2011-11-16 21:15:49 -05:00
|
|
|
std::string getHandle() const { return mNode->getName(); }
|
|
|
|
Ogre::SceneNode* getNode() {return mNode;}
|
2011-01-08 15:11:37 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|