PROTO::KLUDGE  0.1
Quick prototyping library for games using SDL and OpenGL.
pk::Ghost Class Reference

#include <Ghost.hpp>

Collaboration diagram for pk::Ghost:
Collaboration graph

Public Member Functions

 Ghost (b2World *world, GLTexture &texture, GLRect rect, steer::BehaviorParameters *params)
 
virtual ~Ghost ()
 
pk::GLSpritegetSprite ()
 
void setChaseSpeed (float speed)
 
void update (float dt, const glm::vec2 &target)
 

Private Attributes

b2World * m_world
 
pk::KinematicBody m_body
 
pk::GLSprite m_sprite
 
steer::SeekComponent m_seek
 
float m_chaseSpeed
 

Constructor & Destructor Documentation

◆ Ghost()

pk::Ghost::Ghost ( b2World *  world,
GLTexture texture,
GLRect  rect,
steer::BehaviorParameters *  params 
)

◆ ~Ghost()

virtual pk::Ghost::~Ghost ( )
virtual

Member Function Documentation

◆ getSprite()

pk::GLSprite& pk::Ghost::getSprite ( )
inline

◆ setChaseSpeed()

void pk::Ghost::setChaseSpeed ( float  speed)
inline

◆ update()

void pk::Ghost::update ( float  dt,
const glm::vec2 &  target 
)

Member Data Documentation

◆ m_body

pk::KinematicBody pk::Ghost::m_body
private

◆ m_chaseSpeed

float pk::Ghost::m_chaseSpeed
private

◆ m_seek

steer::SeekComponent pk::Ghost::m_seek
private

◆ m_sprite

pk::GLSprite pk::Ghost::m_sprite
private

◆ m_world

b2World* pk::Ghost::m_world
private

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