Meteor defense project

Dependencies:   N5110 mbed

Spawn/Spawn.h

Committer:
jasper0712
Date:
2017-03-20
Revision:
1:f5cda0674f24
Parent:
0:5fbc0fbc9d30
Child:
2:2c60c92bf65b

File content as of revision 1:f5cda0674f24:

#ifndef SPAWN_H
#define SPAWN_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Weapon.h"

//Y rows and X columns
#define Rows 48
#define Cols 84

class Spawn
{
public:
    Spawn();
    ~Spawn();
    //spawnHealth
    void randomizeSpawn();
    //spawnSpeed
    void moveSpawn(int array[Cols][Rows]);
    //weaponUsed
    void checkSpawn(N5110 &lcd);
    void updateSpawn(int array[Cols][Rows], N5110 &lcd);
    int spawnArray[Cols][Rows];


private:
    //column and row same as the screen resolution
    
    float speed;
    int stopSpawn;
};

#endif