Jamie Slowgrove - AI Assignment 1
Line of Sight & A* path-finding
 All Classes Namespaces Files Functions Variables
Public Member Functions | List of all members
Wall Class Reference

Creates a Wall object that inherits Entity. Creates a Wall object that inherits Entity and contains the details for the Wall. More...

#include <wall.h>

Inheritance diagram for Wall:
Inheritance graph
Collaboration diagram for Wall:
Collaboration graph

Public Member Functions

 Wall (Texture *, Vec2, int, int)
 
 ~Wall ()
 
- Public Member Functions inherited from Entity
 Entity (Texture *, Vec2, Vec2, int, int, int, int)
 
 ~Entity ()
 
void display (SDL_Renderer *)
 
void setPosition (Vec2)
 
Vec2 getPosition ()
 
int getWidth ()
 
int getHeight ()
 

Additional Inherited Members

- Protected Attributes inherited from Entity
Vec2 position
 
Vec2 source
 
int spriteWidth
 
int spriteHeight
 
int width
 
int height
 
Texturetexture
 

Detailed Description

Creates a Wall object that inherits Entity. Creates a Wall object that inherits Entity and contains the details for the Wall.

Constructor & Destructor Documentation

Wall::Wall ( Texture inTexture,
Vec2  inPos,
int  w,
int  h 
)

Constructs a Wall object

Parameters
Texture* A pointer to the Texture
Vec2The position of the Wall
intthe width of the Wall
intthe height of the Wall
Wall::~Wall ( )

Destructs the Creature object


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