El Octavio  1.0
This is a video game about adventures.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Npc Class Reference

#include <El Octavo-Functions.h>

+ Collaboration diagram for Npc:

Public Member Functions

 Npc (Texture *texture, Vector2u imageCount, float switchTime, float speed, string name)
 
 ~Npc ()
 
void draw (RenderWindow &window)
 
void moveX (float amount)
 
void update (int row, float deltaTime, bool delay)
 
void moveTo (float pos[], float deltaTime, bool &done, bool &faceLeft)
 

Public Attributes

bool faceLeft
 
IntRect uvRect
 
RectangleShape body
 
Vector2f velocity
 
bool delay
 

Detailed Description

Definition at line 27 of file El Octavo-Functions.h.

Constructor & Destructor Documentation

◆ Npc()

Npc::Npc ( Texture texture,
Vector2u  imageCount,
float  switchTime,
float  speed,
string  name 
)

Definition at line 8 of file El Octavo-Functions.cpp.

+ Here is the call graph for this function:

◆ ~Npc()

Npc::~Npc ( )

Definition at line 33 of file El Octavo-Functions.cpp.

Member Function Documentation

◆ draw()

void Npc::draw ( RenderWindow window)

Definition at line 36 of file El Octavo-Functions.cpp.

+ Here is the call graph for this function:

◆ moveTo()

void Npc::moveTo ( float  pos[],
float  deltaTime,
bool &  done,
bool &  faceLeft 
)

Definition at line 75 of file El Octavo-Functions.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ moveX()

void Npc::moveX ( float  amount)

Definition at line 40 of file El Octavo-Functions.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ update()

void Npc::update ( int  row,
float  deltaTime,
bool  delay 
)

Definition at line 44 of file El Octavo-Functions.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ body

RectangleShape Npc::body

Definition at line 57 of file El Octavo-Functions.h.

◆ delay

bool Npc::delay

Definition at line 59 of file El Octavo-Functions.h.

◆ faceLeft

bool Npc::faceLeft

Definition at line 55 of file El Octavo-Functions.h.

◆ uvRect

IntRect Npc::uvRect

Definition at line 56 of file El Octavo-Functions.h.

◆ velocity

Vector2f Npc::velocity

Definition at line 58 of file El Octavo-Functions.h.


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