1
Files
lua-computercraft/controller/testing_controller.lua

57 lines
1.2 KiB
Lua

local Direction = require("lib.direction")
local TurtleController = require("controller.turtle_controller")
---@class TestingController
---@field controller TurtleController
local TestingController = {}
TestingController.__index = TestingController
---@return TestingController
function TestingController:Create()
local t = {}
setmetatable(t, TestingController)
t.controller = TurtleController:Create()
return t
end
-----------------------------------------------------------------------------------------------
-- Behavior Methods
-----------------------------------------------------------------------------------------------
function TestingController:TestSimpleMovement()
end
function TestingController:TestComplexMovement()
end
function TestingController:TestUnloading()
end
function TestingController:TestRefueling()
end
-----------------------------------------------------------------------------------------------
-- Main Method
-----------------------------------------------------------------------------------------------
function TestingController:Run()
self.controller:Configure()
self:TestSimpleMovement()
self:TestComplexMovement()
self:TestUnloading()
self:TestRefueling()
end
return TestingController