Implement base TurtleController and simple VolumeExcavationController
This commit is contained in:
57
controller/testing_controller.lua
Normal file
57
controller/testing_controller.lua
Normal file
@ -0,0 +1,57 @@
|
||||
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
|
||||
Reference in New Issue
Block a user