| Unuk 1.0

- Main Page
- Classes
- Files

- File List
- File Members

src/Unuk/Player.h
Go to the documentation of this file.

    00001 #ifndef _PLAYER_H_
    00002 #define _PLAYER_H_
    00003 #include <SDL/SDL.h>
    00004 #include "../libUnuk/Sprite.h"
    00005
    00006 class Player {
    00007 public:
    00008   Player(void);
    00009   ~Player(void);
    00010
    00011   void Prepare(void);
    00012   void Render(void);
    00013
    00014   void SetSprite(void);
    00015
    00016   void SetPosition(GLdouble posx, GLdouble posy);
    00017   void SetVelocity(GLdouble velx, GLdouble vely);
    00018
    00019   void CleanUp(void);
    00020
    00021 private:
    00022   Sprite* m_player;
    00023
    00024   // Position variables.
    00025   GLdouble m_posx;
    00026   GLdouble m_posy;
    00027
    00028   // Velocity variables.
    00029   int m_velx;
    00030   int m_vely;
    00031 };
    00032
    00033 #endif

All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines