Package za.co.wethinkcode.robots.server.commands
package za.co.wethinkcode.robots.server.commands
This module stores all commands executed in the Robot World Game
-
ClassDescriptionEvery command follows this same pattern: It receives a robot name and arguments It runs against the world It returns a result stringThe Command Switcher class more elegantly responds to incoming command requests in a polymorphic way.The Implemented client Commands enum captures the allowed variants of a Client CommandCommands that implement the stateful interface manipulate the state of the world and the robots in it