Meteor defense project

Dependencies:   N5110 mbed

Spawn/Spawn.h

Committer:
jasper0712
Date:
2017-03-23
Revision:
6:a554424e4517
Parent:
3:6b50fe9d3848
Child:
13:38cbce17d7d7

File content as of revision 6:a554424e4517:

#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(int Arr1[][Rows], int Arr2[][Rows]);
    //spawnSpeed
    void moveSpawn(int Arr1[][Rows], int Arr2[][Rows]);
    //weaponUsed
    void checkSpawn(N5110 &lcd);
    void updateSpawn(int Arr1[][Rows], int Arr2[][Rows],N5110 &lcd);
    


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

#endif