Meteor defense project

Dependencies:   N5110 mbed

Spawn/Spawn.h

Committer:
jasper0712
Date:
2017-03-21
Revision:
2:2c60c92bf65b
Parent:
1:f5cda0674f24
Child:
3:6b50fe9d3848

File content as of revision 2:2c60c92bf65b:

#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();
    //weaponUsed
    void checkSpawn(N5110 &lcd);
    void updateSpawn(N5110 &lcd);
    int spawnArray1[Cols][Rows];
    int spawnArray2[Cols][Rows];


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

#endif