summary refs log tree commit diff stats
path: root/src/components/droppable.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-02-07 15:18:48 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-02-07 15:18:48 -0500
commitf9448d36db7c076f5091f70b7921dceddf63fdf9 (patch)
treea67d47d3e45fee4c258ad968f0d7bec9d78747eb /src/components/droppable.h
parentda454bb943929ae649c09ca948e7c83644c35712 (diff)
downloadtherapy-f9448d36db7c076f5091f70b7921dceddf63fdf9.tar.gz
therapy-f9448d36db7c076f5091f70b7921dceddf63fdf9.tar.bz2
therapy-f9448d36db7c076f5091f70b7921dceddf63fdf9.zip
Inlined some components
Diffstat (limited to 'src/components/droppable.h')
-rw-r--r--src/components/droppable.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/components/droppable.h b/src/components/droppable.h index 83fcb9d..722c139 100644 --- a/src/components/droppable.h +++ b/src/components/droppable.h
@@ -4,12 +4,21 @@
4#include "component.h" 4#include "component.h"
5 5
6class DroppableComponent : public Component { 6class DroppableComponent : public Component {
7 public: 7public:
8 void setDroppable(bool can);
9 bool isDroppable() const;
10 8
11 private: 9 inline bool isDroppable() const
12 bool droppable = false; 10 {
11 return droppable_;
12 }
13
14 inline void setDroppable(bool can)
15 {
16 droppable_ = can;
17 }
18
19private:
20
21 bool droppable_ = false;
13}; 22};
14 23
15#endif /* end of include guard: DROPPABLE_H_5DB254EF */ 24#endif /* end of include guard: DROPPABLE_H_5DB254EF */