the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 29 lines 470 B view raw
1#pragma once 2 3#include "Goal.h" 4 5class DoorTile; 6 7class DoorInteractGoal : public Goal 8{ 9protected: 10 Mob *mob; // Owner of this goal 11 int doorX, doorY, doorZ; 12 DoorTile *doorTile; 13 14private: 15 bool passed; 16 float doorOpenDirX, doorOpenDirZ; 17 18public: 19 DoorInteractGoal(Mob *mob); 20 virtual ~DoorInteractGoal() {} 21 22 virtual bool canUse(); 23 virtual bool canContinueToUse(); 24 virtual void start(); 25 virtual void tick(); 26 27private: 28 DoorTile *getDoorTile(int x, int y, int z); 29};