Line data Source code
1 : #include "Disc.hpp" 2 : #include "ExceptionWithLocation.hpp" 3 : #include "Types.hpp" 4 : 5 : namespace cell 6 : { 7 : 8 320 : Disc::Disc(DiscTypeID discTypeID) 9 320 : : discTypeID_(discTypeID) 10 : { 11 320 : } 12 : 13 7 : void Disc::setType(DiscTypeID discTypeID) 14 : { 15 7 : discTypeID_ = discTypeID; 16 7 : } 17 : 18 3 : void Disc::markDestroyed() 19 : { 20 3 : destroyed_ = true; 21 3 : } 22 : 23 664 : DiscTypeID Disc::getTypeID() const 24 : { 25 664 : return discTypeID_; 26 : } 27 : 28 50 : bool Disc::isMarkedDestroyed() const 29 : { 30 50 : return destroyed_; 31 : } 32 : 33 : } // namespace cell