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 stringFactory responsible for constructing concrete
Commandinstances from a parsedCommandRequest.Data Transfer Object (DTO) representing a client command request.The Command Switcher class more elegantly responds to incoming command requests in a polymorphic way.Commands that implement the stateful interface manipulate the state of the world and the robots in it