From ea35e8ede4c3a522375d4539c872e8a6d6c9830a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 16 Mar 2021 18:29:37 +0000 Subject: Implement goto so node Encompasses determining a route and a distance to travel --- game/activities/go.cpp | 3 +++ game/activities/go.h | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 game/activities/go.cpp (limited to 'game/activities') diff --git a/game/activities/go.cpp b/game/activities/go.cpp new file mode 100644 index 0000000..767e59c --- /dev/null +++ b/game/activities/go.cpp @@ -0,0 +1,3 @@ +#include "go.h" + +Go::Go(float d) : dist {d} { } diff --git a/game/activities/go.h b/game/activities/go.h index 858b804..54af31b 100644 --- a/game/activities/go.h +++ b/game/activities/go.h @@ -1,10 +1,16 @@ #ifndef GO_H #define GO_H +#include "../activity.h" #include "../activityOf.h" +#include class Go : public Activity::Of { public: + Go() = default; + explicit Go(float dist); + + std::optional dist; }; #endif -- cgit v1.2.3