Jamie Slowgrove - MGP Assignment 2 - JAM
 All Classes Namespaces Files Functions Variables Macros
Public Member Functions | List of all members
Robot Class Reference

Creates a Robot object that inherits Entity. More...

#include <Robot.h>

Inheritance diagram for Robot:
Inheritance graph
Collaboration diagram for Robot:
Collaboration graph

Public Member Functions

 Robot (JAM_Texture *sprite, float x, float y, float width, float height)
 
 ~Robot ()
 
void update (float dt)
 
- Public Member Functions inherited from JAM_Entity
 JAM_Entity (JAM_Texture *sprite, float x, float y, float width, float height)
 
 ~JAM_Entity ()
 
void draw (SDL_Renderer *renderer)
 
void setPosition (float x, float y)
 
void setPosition (JAM_Vec2 position)
 
void setX (float x)
 
void setY (float y)
 
void setDimensions (float width, float height)
 
void setDimensions (JAM_Vec2 dimensions)
 
void setWidth (float width)
 
void setHeight (float height)
 
JAM_Vec2 getPosition ()
 
JAM_Vec2 getDimensions ()
 

Detailed Description

Creates a Robot object that inherits Entity.

Author
Jamie Slowgrove

Constructor & Destructor Documentation

Robot::Robot ( JAM_Texture sprite,
float  x,
float  y,
float  width,
float  height 
)

Constructs the Robot object.

Parameters
spriteA pointer to the objects Texture.
xThe x position of the Robot.
yThe y position of the Robot.
widthThe width of the Robot.
heightThe height of the Robot.
Robot::~Robot ( )

Destructs the Robot object.

Member Function Documentation

void Robot::update ( float  dt)
virtual

A function that updates the Robot.

Parameters
dtThe delta time.

Implements JAM_Entity.


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