diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-03-16 00:59:53 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-03-16 00:59:53 +0000 |
commit | 56493c5bdfa181d172acbd56cb69589c28623b47 (patch) | |
tree | 11073a4558e6190ed8204eb6d6bdb6028bd40ae3 /game/activity.h | |
parent | Add requires on factory like functions (diff) | |
download | ilt-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.h | 4 |
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 |