Jamie Slowgrove - MGP Assignment 2 - JAM
 All Classes Namespaces Files Functions Variables Macros
ArrowPad.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL.h>
4 #include <string.h>
5 #include "Texture.h"
6 #include "Button.h"
7 
13 {
14 private:
25 
26 public:
35  JAM_ArrowPad(float x, float y, float width, float height, SDL_Renderer* renderer);
36 
40  ~JAM_ArrowPad();
41 
46  void input(SDL_Event& incomingEvent);
47 
52  void draw(SDL_Renderer* renderer);
53 
58  bool getUp();
59 
64  bool getDown();
65 
70  bool getLeft();
71 
76  bool getRight();
77 };
void input(SDL_Event &incomingEvent)
Definition: ArrowPad.cpp:42
void draw(SDL_Renderer *renderer)
Definition: ArrowPad.cpp:54
bool getDown()
Definition: ArrowPad.cpp:75
bool upCmd
Definition: ArrowPad.h:24
bool leftCmd
Definition: ArrowPad.h:24
JAM_Button * right
Definition: ArrowPad.h:22
bool getUp()
Definition: ArrowPad.cpp:66
bool getLeft()
Definition: ArrowPad.cpp:84
~JAM_ArrowPad()
Definition: ArrowPad.cpp:30
bool rightCmd
Definition: ArrowPad.h:24
Creates an ArrowPad object.
Definition: ArrowPad.h:12
JAM_Button * left
Definition: ArrowPad.h:20
Creates a Button object that inherits Entity.
Definition: Button.h:11
bool downCmd
Definition: ArrowPad.h:24
JAM_ArrowPad(float x, float y, float width, float height, SDL_Renderer *renderer)
Definition: ArrowPad.cpp:6
JAM_Button * up
Definition: ArrowPad.h:16
JAM_Button * down
Definition: ArrowPad.h:18
bool getRight()
Definition: ArrowPad.cpp:93