Changeset View
Changeset View
Standalone View
Standalone View
ksirk/GameLogic/goal.h
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | 44 | public: | |||
---|---|---|---|---|---|
64 | Goal(GameAutomaton* automaton); | 64 | Goal(GameAutomaton* automaton); | ||
65 | 65 | | |||
66 | /** Copy constructor */ | 66 | /** Copy constructor */ | ||
67 | Goal(const Goal& goal); | 67 | Goal(const Goal& goal); | ||
68 | 68 | | |||
69 | /** Default destructor */ | 69 | /** Default destructor */ | ||
70 | ~Goal(); | 70 | ~Goal(); | ||
71 | 71 | | |||
72 | /** Assignment operator */ | ||||
73 | Goal& operator=( const Goal& other ) = default; | ||||
chehrlic: Custom copy ctor but default operator=() ? Doesn't look correct. | |||||
74 | | ||||
72 | //@{ | 75 | //@{ | ||
73 | /** Accessors for the goal type */ | 76 | /** Accessors for the goal type */ | ||
74 | inline GoalType type() const {return m_type;} | 77 | inline GoalType type() const {return m_type;} | ||
75 | inline GoalType type() {return m_type;} | 78 | inline GoalType type() {return m_type;} | ||
76 | inline void type(GoalType type) {m_type = type;} | 79 | inline void type(GoalType type) {m_type = type;} | ||
77 | //@} | 80 | //@} | ||
78 | 81 | | |||
79 | //@{ | 82 | //@{ | ||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |
Custom copy ctor but default operator=() ? Doesn't look correct.