Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef QUEUE_H
- #define QUEUE_H
- #include "Car.h"
- struct Node;
- class Queue
- {
- public:
- Queue();
- Queue(int);
- ~Queue();
- void Enqueue(Car*, unsigned int);
- Car* Dequeue();
- int GetPumpQueueLength();
- bool GetisIdle();
- void SetisIdle(bool);
- private:
- Node *List;
- int EntityNum;
- bool isIdle;
- int QueueLength;
- int AttendantsBusy; //Somethign to check whether we have 1 or 2 attendants busy. Has not been implemented yet. (But would be used to use either one or two attendants during the simulation.
- };
- struct Node
- {
- Car* Data;
- Node* Next;
- };
- #endif
Add Comment
Please, Sign In to add comment