HOG2
ReservationProvider.h
Go to the documentation of this file.
1 /*
2  * $Id: reservationProvider.h
3  * hog2
4  *
5  * Created by Nathan Sturtevant on 5/13/05.
6  * Modified by Nathan Sturtevant on 02/29/20.
7  *
8  * This file is part of HOG2. See https://github.com/nathansttt/hog2 for licensing information.
9  *
10  */
11 
12 #ifndef RESERVATIONPROVIDER_H
13 #define RESERVATIONPROVIDER_H
14 
15 #include <stdint.h>
16 
17 // template <class state, class action>
18 // class OccupancyInterface {
19 // public:
20 // virtual ~OccupancyInterface() {}
21 // virtual void SetStateOccupied(state, bool) = 0;
22 // virtual bool GetStateOccupied(state) = 0;
23 // virtual bool CanMove(state, state);
24 // virtual bool CanMove(state, state, double, uint32_t ID) = 0;
25 // virtual bool ReserveMove(state, state, double, uint32_t ID) = 0;
26 // virtual bool ClearMove(state, state, double, uint32_t ID) = 0;
27 // virtual bool ClearStates() = 0;
28 // };
29 
30 #include "Graph.h"
31 class unit;
32 
34 public:
35  virtual ~reservationProvider() {};
36  //virtual bool tileOccupied(int x, int y) = 0;
37  virtual bool nodeOccupied(node *) = 0;
38 
39  virtual bool canMove(node *from, node *to, double startTime, unit *) = 0;
40  virtual bool reserveMove(node *from, node *to, double startTime, unit *) = 0;
41  virtual bool clearMove(node *from, node *to, double startTime, unit *) = 0;
42  virtual void clearAllReservations() = 0;
43 };
44 
45 #include "Unit.h"
46 
47 #endif
48 
Graph.h
reservationProvider::reserveMove
virtual bool reserveMove(node *from, node *to, double startTime, unit *)=0
reservationProvider::~reservationProvider
virtual ~reservationProvider()
Definition: ReservationProvider.h:35
reservationProvider::clearAllReservations
virtual void clearAllReservations()=0
reservationProvider::canMove
virtual bool canMove(node *from, node *to, double startTime, unit *)=0
reservationProvider
Definition: ReservationProvider.h:33
reservationProvider::nodeOccupied
virtual bool nodeOccupied(node *)=0
reservationProvider::clearMove
virtual bool clearMove(node *from, node *to, double startTime, unit *)=0
node
Nodes to be stored within a Graph.
Definition: Graph.h:170
Unit.h