raSystem  1.0 bata
raGameCharakter Class Reference

#include <raGameCharakter.h>

Public Member Functions

 raGameCharakter (raGame *pGame, UINT team, raVector3 position, raVector3 destination, raVector3 scale=raVector3(1, 1, 1))
 
 raGameCharakter (const GUID &raguid, raGame *pGame, UINT team, raVector3 position, raVector3 destination, raVector3 scale=raVector3(1, 1, 1))
 
 ~raGameCharakter (void)
 
void Update (double fTime, float fElapsedTime)
 
raVector3 GetPosition ()
 
UINT GetHealth ()
 
void SetDestination (const raVector3 &destination)
 
void SetSelected (bool bSelected)
 
void SetFollow (raGameCharakter *pOther)
 
void TakeHit (raGameCharakter *pOther)
 
void SetAnimation (UINT clip)
 

Protected Attributes

UINT m_InstanceNo
 
UINT m_Team
 
UINT m_MaxHealth
 
UINT m_AktHealth
 
raMatrix m_scale
 
raVector3 m_Position
 
raVector3 m_velocity
 
raVector3 m_destination
 
float m_speed
 
raGamem_pGame
 
raGameCharakterm_pFollow
 
bool m_bIsFighting
 

Detailed Description

Definition at line 3 of file raGameCharakter.h.

Constructor & Destructor Documentation

◆ raGameCharakter() [1/2]

raGameCharakter::raGameCharakter ( raGame pGame,
UINT  team,
raVector3  position,
raVector3  destination,
raVector3  scale = raVector3(1, 1, 1) 
)

Definition at line 5 of file raGameCharakter.cpp.

◆ raGameCharakter() [2/2]

raGameCharakter::raGameCharakter ( const GUID &  raguid,
raGame pGame,
UINT  team,
raVector3  position,
raVector3  destination,
raVector3  scale = raVector3(1, 1, 1) 
)

◆ ~raGameCharakter()

raGameCharakter::~raGameCharakter ( void  )

Definition at line 28 of file raGameCharakter.cpp.

Member Function Documentation

◆ GetHealth()

UINT raGameCharakter::GetHealth ( )
inline

Definition at line 19 of file raGameCharakter.h.

◆ GetPosition()

raVector3 raGameCharakter::GetPosition ( void  )
inline

Definition at line 18 of file raGameCharakter.h.

◆ SetAnimation()

void raGameCharakter::SetAnimation ( UINT  clip)

Definition at line 142 of file raGameCharakter.cpp.

◆ SetDestination()

void raGameCharakter::SetDestination ( const raVector3 destination)

Definition at line 33 of file raGameCharakter.cpp.

◆ SetFollow()

void raGameCharakter::SetFollow ( raGameCharakter pOther)

Definition at line 132 of file raGameCharakter.cpp.

◆ SetSelected()

void raGameCharakter::SetSelected ( bool  bSelected)

Definition at line 127 of file raGameCharakter.cpp.

◆ TakeHit()

void raGameCharakter::TakeHit ( raGameCharakter pOther)

Definition at line 99 of file raGameCharakter.cpp.

◆ Update()

void raGameCharakter::Update ( double  fTime,
float  fElapsedTime 
)

Definition at line 47 of file raGameCharakter.cpp.

Member Data Documentation

◆ m_AktHealth

UINT raGameCharakter::m_AktHealth
protected

Definition at line 32 of file raGameCharakter.h.

◆ m_bIsFighting

bool raGameCharakter::m_bIsFighting
protected

Definition at line 43 of file raGameCharakter.h.

◆ m_destination

raVector3 raGameCharakter::m_destination
protected

Definition at line 37 of file raGameCharakter.h.

◆ m_InstanceNo

UINT raGameCharakter::m_InstanceNo
protected

Definition at line 29 of file raGameCharakter.h.

◆ m_MaxHealth

UINT raGameCharakter::m_MaxHealth
protected

Definition at line 31 of file raGameCharakter.h.

◆ m_pFollow

raGameCharakter* raGameCharakter::m_pFollow
protected

Definition at line 42 of file raGameCharakter.h.

◆ m_pGame

raGame* raGameCharakter::m_pGame
protected

Definition at line 41 of file raGameCharakter.h.

◆ m_Position

raVector3 raGameCharakter::m_Position
protected

Definition at line 35 of file raGameCharakter.h.

◆ m_scale

raMatrix raGameCharakter::m_scale
protected

Definition at line 34 of file raGameCharakter.h.

◆ m_speed

float raGameCharakter::m_speed
protected

Definition at line 39 of file raGameCharakter.h.

◆ m_Team

UINT raGameCharakter::m_Team
protected

Definition at line 30 of file raGameCharakter.h.

◆ m_velocity

raVector3 raGameCharakter::m_velocity
protected

Definition at line 36 of file raGameCharakter.h.


The documentation for this class was generated from the following files: