Jamie Slowgrove - MGP Assignment 2 - JAM
 All Classes Namespaces Files Functions Variables Macros
ForceField.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <iostream>
4 #include "JAM/Entity.h"
5 
10 class ForceField : public JAM_Entity
11 {
12 private:
14  float velocity;
16  float screenWidth;
18  float screenHeight;
19 
20 public:
32  ForceField(JAM_Texture* sprite, float x, float y, float width, float height, float velocity, float screenWidth, float screenHeight);
33 
37  ~ForceField();
38 
43  void update(float dt);
44 };
float velocity
Definition: ForceField.h:14
void update(float dt)
Definition: ForceField.cpp:27
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
float screenHeight
Definition: ForceField.h:18
ForceField(JAM_Texture *sprite, float x, float y, float width, float height, float velocity, float screenWidth, float screenHeight)
Definition: ForceField.cpp:6
float screenWidth
Definition: ForceField.h:16
~ForceField()
Definition: ForceField.cpp:20
Creates a ForceField object that inherits Entity.
Definition: ForceField.h:10
Creates an Entity object.
Definition: Entity.h:10