Jamie Slowgrove - MGP Assignment 2 - JAM
 All Classes Namespaces Files Functions Variables Macros
MapSquare.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "JAM/Entity.h"
4 
9 class MapSquare : public JAM_Entity
10 {
11 private:
13  bool danger;
14 
15 public:
25  MapSquare(JAM_Texture* sprite, float x, float y, float width, float height, bool danger);
26 
30  ~MapSquare();
31 
36  void update(float dt);
37 
42  void setDanger(bool danger);
43 
48  bool getDanger();
49 };
void update(float dt)
Definition: MapSquare.cpp:23
JAM_Texture * sprite
Definition: Entity.h:14
Creates a Texture for use with a renderer. Creates a Texture from an image file, this can then be use...
Definition: Texture.h:13
void setDanger(bool danger)
Definition: MapSquare.cpp:30
bool getDanger()
Definition: MapSquare.cpp:39
Creates a MapSquare object that inherits Entity.
Definition: MapSquare.h:9
~MapSquare()
Definition: MapSquare.cpp:16
bool danger
Definition: MapSquare.h:13
MapSquare(JAM_Texture *sprite, float x, float y, float width, float height, bool danger)
Definition: MapSquare.cpp:6
Creates an Entity object.
Definition: Entity.h:10