raSystem  1.0 bata
raGameCharakter.h
Go to the documentation of this file.
1 #pragma once
2 
4  {
5  public:
6  raGameCharakter(raGame* pGame,
7  UINT team, raVector3 position, raVector3 destination,
8  raVector3 scale = raVector3(1, 1, 1));
9 
10  raGameCharakter(const GUID& raguid, raGame* pGame,
11  UINT team, raVector3 position, raVector3 destination,
12  raVector3 scale = raVector3(1, 1, 1));
13 
14  ~raGameCharakter(void);
15 
16  void Update(double fTime, float fElapsedTime);
17 
18  raVector3 GetPosition() { return m_Position; }
19  UINT GetHealth() { return m_AktHealth; }
20 
21  void SetDestination(const raVector3& destination);
22  void SetSelected(bool bSelected);
23  void SetFollow(raGameCharakter* pOther);
24 
25  void TakeHit(raGameCharakter* pOther);
26 
27  void SetAnimation(UINT clip);
28  protected:
30  UINT m_Team;
33 
38 
39  float m_speed;
40 
44  };
#define RAPI
Definition: raMain.h:11
raVector3 m_velocity
raVector3 m_destination
raVector3 m_Position
raVector3 GetPosition()
Definition: raGame.h:3
raGameCharakter * m_pFollow