X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=stop.hpp;h=c7256bcf49b0b1e133472f062a7298cdcab1d7fe;hb=dd9988b5db6dc820c5fcd07f88513d126e926d22;hp=57839a254b977dcf006ea83d5b77be874ec2d35d;hpb=fb458316875aebf0ab70211d6aac8b3d68556b52;p=cs356-p1-elevator.git diff --git a/stop.hpp b/stop.hpp index 57839a2..c7256bc 100644 --- a/stop.hpp +++ b/stop.hpp @@ -21,6 +21,9 @@ class Stop : public Position */ Stop (int floor, enum direction mydirection); + + Stop (Position pos, enum direction mydirection); + /* * PURPOSE: Check if this and another Stop object is equivalent * @@ -29,6 +32,7 @@ class Stop : public Position * PROMISE: Return true if this and rhs are equivalent, false otherwise */ bool operator== (Stop& rhs); + friend std::ostream& operator<< (std::ostream& os, Stop& rhs); private: