Faizan Khan / Mbed 2 deprecated 4180-lab4

Dependencies:   4DGL-uLCD-SE mbed SDFileSystem wave_player

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers stack.h Source File

stack.h

00001 #ifndef STACK_H
00002 #define STACK_H
00003 
00004 #include "uLCD_4DGL.h"
00005 #include "food.h"
00006 #include <vector>
00007 using namespace std;
00008 
00009 class Stack {
00010 public:
00011   Stack(int,uLCD_4DGL*);
00012   void draw();
00013   void erase();
00014   void move(int);
00015   void add(Food * );
00016   int size();
00017   void clear();
00018   int top;
00019   int x;
00020   
00021 private:
00022   bool isBad;
00023   vector<Food> stackOfFood; 
00024   uLCD_4DGL * lcd;
00025   
00026 };
00027 
00028 #endif