Guest User

Untitled

a guest
Jul 23rd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #ifndef QUEUE_H
  2. #define QUEUE_H
  3.  
  4. #include "Car.h"
  5.  
  6. struct Node;
  7.  
  8. class Queue
  9. {
  10.     public:
  11.         Queue();
  12.         Queue(int);
  13.         ~Queue();
  14.         void Enqueue(Car*, unsigned int);
  15.         Car* Dequeue();
  16.         int GetPumpQueueLength();
  17.         bool GetisIdle();
  18.         void SetisIdle(bool);
  19.    
  20.     private:
  21.     Node *List;
  22.     int EntityNum;
  23.     bool isIdle;
  24.    
  25.     int QueueLength;
  26.     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.
  27. };
  28.  
  29. struct Node
  30. {
  31.     Car* Data;
  32.     Node* Next;
  33. };
  34.  
  35. #endif
Add Comment
Please, Sign In to add comment