summaryrefslogtreecommitdiff
path: root/game/activity.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-03-16 00:59:53 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-03-16 00:59:53 +0000
commit56493c5bdfa181d172acbd56cb69589c28623b47 (patch)
tree11073a4558e6190ed8204eb6d6bdb6028bd40ae3 /game/activity.h
parentAdd requires on factory like functions (diff)
downloadilt-56493c5bdfa181d172acbd56cb69589c28623b47.tar.bz2
ilt-56493c5bdfa181d172acbd56cb69589c28623b47.tar.xz
ilt-56493c5bdfa181d172acbd56cb69589c28623b47.zip
Allow activities to be changed when doing them
Diffstat (limited to 'game/activity.h')
-rw-r--r--game/activity.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/activity.h b/game/activity.h
index f7eda21..f6ec609 100644
--- a/game/activity.h
+++ b/game/activity.h
@@ -13,7 +13,7 @@ public:
DEFAULT_MOVE_COPY(Activity);
virtual ~Activity() = default;
- virtual void apply(Vehicle *, TickDuration) const = 0;
+ virtual void apply(Vehicle *, TickDuration) = 0;
template<typename T> class Of;
};
@@ -22,7 +22,7 @@ using ActivityPtr = std::unique_ptr<Activity>;
template<typename T> concept ActivityConcept = std::is_base_of_v<Activity, T>;
template<ActivityConcept AC> class Can {
public:
- virtual void doActivity(const AC *, TickDuration) = 0;
+ virtual void doActivity(AC *, TickDuration) = 0;
};
#endif