summaryrefslogtreecommitdiff
path: root/game/activity.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-03-09 01:21:04 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-03-09 01:21:04 +0000
commit82e51328e0cc1e1e17565420fecb05df68827f07 (patch)
tree1449db69349bfa59242a862e6d5a50b32782115d /game/activity.h
parentPush link based movement into Vehicle (diff)
downloadilt-82e51328e0cc1e1e17565420fecb05df68827f07.tar.bz2
ilt-82e51328e0cc1e1e17565420fecb05df68827f07.tar.xz
ilt-82e51328e0cc1e1e17565420fecb05df68827f07.zip
Split ActivityOf<> into its own file
Diffstat (limited to 'game/activity.h')
-rw-r--r--game/activity.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/game/activity.h b/game/activity.h
index 33c36fd..f7eda21 100644
--- a/game/activity.h
+++ b/game/activity.h
@@ -25,14 +25,4 @@ public:
virtual void doActivity(const AC *, TickDuration) = 0;
};
-template<typename T> class Activity::Of : public Activity {
- void
- apply(Vehicle * v, TickDuration dur) const override
- {
- if (auto tv = dynamic_cast<Can<T> *>(v)) {
- tv->doActivity(static_cast<const T *>(this), dur);
- }
- }
-};
-
#endif