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.

24 lines
551 B
C++

#pragma once
#include "enums.h"
#include "game_element.h"
#include "bullet.h"
//Ship sprite displayed over background
class Ship : public GameElement {
public:
ALLEGRO_BITMAP* sprite; //loads a sprite rather than a primitive
bool fired; //no longer used
Ship();
//implementing virtual methods
void reset_pos(float x, float y);
void draw();
void move(Direction dir);
Hitbox get_hitbox();
void set_props(ALLEGRO_BITMAP* _sprite, Behavior _behavior); //Sets ship properties
Bullet fire(); //Creates a new bullet
};