You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
350 B
C++
19 lines
350 B
C++
#pragma once
|
|
#include <allegro5/allegro.h>
|
|
|
|
#include "enums.h"
|
|
|
|
class GameElement {
|
|
public:
|
|
float x_pos;
|
|
float y_pos;
|
|
float speed;
|
|
float height;
|
|
float width;
|
|
bool oob;
|
|
|
|
virtual void reset_pos(float x, float y) = 0;
|
|
virtual void move(Direction dir) = 0;
|
|
virtual void draw() = 0;
|
|
virtual void collide(GameElement* x) = 0;
|
|
}; |