ELEC2645 (2018/19) / Mbed 2 deprecated el17dg

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

game/game.h

Committer:
Noximilien
Date:
2019-03-27
Revision:
21:0eb394495b8a
Parent:
20:557e84189a57
Child:
22:4dc3c95f2146

File content as of revision 21:0eb394495b8a:

#ifndef GAME_H
#define GAME_H

#include "geometry.h"

class Game{
public:
    Game();
    bool updateAndDraw();  
    void startNewGame();
private:
    void collideEnemiesAndBlasts();
    void fireNewBlast();
    void collideEnemiesBlastsAndPlayer();
    void updateAndDrawBlasts();
    void shipMovment();

    CircleBounds player_bounds;
    CircleBounds blast_bounds;
};


#endif