2 * CS356 Project 01 -- Elevator Simulator
4 * Stop Class Specification
10 #include "position.hpp"
11 #include "direction.hpp"
13 class Stop : public Position
16 /* PURPOSE: Construct a new Stop object, and set the floor and direction
20 * PROMISE: A new Stop object will be created
22 Stop (int floor, enum direction mydirection);
25 * PURPOSE: Check if this and another Stop object is equivalent
27 * REQUIRE: rhs is a valid Stop object
29 * PROMISE: Return true if this and rhs are equivalent, false otherwise
31 bool operator== (Stop& rhs);
35 /* Storage for the direction */
36 enum direction _direction;
41 /* vim: set ts=4 sts=4 sw=4 noexpandtab textwidth=112: */