Uses of Class
za.co.wethinkcode.robots.server.world.Position
Packages that use Position
Package
Description
Classes in this package encapsulate interactions with the Robot Worlds Server CLI
This module contains classes required for rendering the server UI
Classes and submodules in this module are responsible for configuring the server
Classes contained in this module encapsulate the behavior of the database
This package contains all functionality related to the titular Robots of the Robot World Game
Classes and submodules in this module encapsulate all functionality of the world
-
Uses of Position in za.co.wethinkcode.robots.cli
Methods in za.co.wethinkcode.robots.cli that return types with arguments of type Position -
Uses of Position in za.co.wethinkcode.robots.client.memory
Methods in za.co.wethinkcode.robots.client.memory that return PositionModifier and TypeMethodDescriptionState.position()Returns the value of thepositionrecord component.Constructors in za.co.wethinkcode.robots.client.memory with parameters of type Position -
Uses of Position in za.co.wethinkcode.robots.rendering
Methods in za.co.wethinkcode.robots.rendering with parameters of type PositionModifier and TypeMethodDescriptionstatic StringServerRenderer.formatWorldWithinConstraints(Position viewPoint, World world) -
Uses of Position in za.co.wethinkcode.robots.server.config
Methods in za.co.wethinkcode.robots.server.config that return types with arguments of type PositionMethod parameters in za.co.wethinkcode.robots.server.config with type arguments of type PositionModifier and TypeMethodDescriptionWorldConfig.setCustomObstacles(List<Position> customObstacles) voidWorldConfig.setCustomPits(List<Position> customPits) -
Uses of Position in za.co.wethinkcode.robots.server.persistence
Methods in za.co.wethinkcode.robots.server.persistence that return PositionModifier and TypeMethodDescriptionSavedWorldObject.bottomRight()Returns the value of thebottomRightrecord component.SavedRobot.position()Returns the value of thepositionrecord component.SavedWorldObject.topLeft()Returns the value of thetopLeftrecord component.Methods in za.co.wethinkcode.robots.server.persistence that return types with arguments of type PositionConstructors in za.co.wethinkcode.robots.server.persistence with parameters of type PositionModifierConstructorDescriptionSavedRobot(String name, RobotKind kind, Position position, Direction direction, int shields, int shots, Status status, Duration actionTimeRemaining) Creates an instance of aSavedRobotrecord class.SavedWorldObject(SavedWorldObjectType type, Position topLeft, Position bottomRight) Creates a persisted obstacle or pit without mine information.SavedWorldObject(SavedWorldObjectType type, Position topLeft, Position bottomRight, MineType mineType) Creates an instance of aSavedWorldObjectrecord class.Constructor parameters in za.co.wethinkcode.robots.server.persistence with type arguments of type PositionModifierConstructorDescriptionSavedWorld(String name, int width, int height, int visibility, List<Position> obstacles) Creates a snapshot of a world that only tracks obstacles, using default timing and combat rules. -
Uses of Position in za.co.wethinkcode.robots.server.robots
Methods in za.co.wethinkcode.robots.server.robots that return PositionMethods in za.co.wethinkcode.robots.server.robots with parameters of type Position -
Uses of Position in za.co.wethinkcode.robots.server.world
Methods in za.co.wethinkcode.robots.server.world that return PositionModifier and TypeMethodDescriptionObstacle.getBottomRight()Pit.getBottomRight()WorldMap.getPositionFromWorldObject(WorldObject obj) Given aWorldObjectreturn thePositionthereObstacle.getTopLeft()Pit.getTopLeft()Obstacle.Brick.p()Returns the value of theprecord component.Methods in za.co.wethinkcode.robots.server.world that return types with arguments of type PositionModifier and TypeMethodDescriptionWorldMap.findRandomValidPosition(Random random, int attempts) Searches for a random position that is valid for a robot to occupyObstacle.getAll()org.apache.commons.collections4.bidimap.DualHashBidiMap<Position, WorldObject> WorldMap.getAllObstacles()org.apache.commons.collections4.bidimap.DualHashBidiMap<Position, WorldObject> WorldMap.getAllWorldObjects()World.getObstacles()WorldMap.getRandomSpawn()Obstacle.iterator()Methods in za.co.wethinkcode.robots.server.world with parameters of type PositionModifier and TypeMethodDescriptionvoidObstacle.addObstacle(Position pos) voidWorldMap.addObstacleToMap(Obstacle obstacle, Position position) Add aObstaclesomewhere on the mapvoidWorld.addRobotAt(Robot robot, Position position) Adds a robot to the world at an exact position, preserving whatever shields/shots/status it already carries.booleanWorld.addRobotLegacy(Robot robot, Position position) voidWorldMap.addRobotToMap(Robot robot, Position position) booleanWorldMap.getSymbolFromPosition(Position position, String fillerSymbol) WorldMap.getWorldObjectFromPosition(Position position) Given aPositionreturn the world Object that is found therebooleanObstacle.hasObstacle(Position pos) booleanWorld.isValidPosition(Position p) booleanWorldMap.isValidPosition(Position p) booleanWorldMap.isValidSpawn(Position p) booleanWorldMap.safelyMoveRobot(Robot robot, Position newPosition) voidWorldMap.updateRobotPositionOnMap(Robot robot, Position nextPosition) Constructors in za.co.wethinkcode.robots.server.world with parameters of type PositionModifierConstructorDescriptionCreates an instance of aBrickrecord class.MineObstacle(Position where, ClientID whoPlaced, MineType type) PitObstacle(Position topLeft, Position bottomRight) Standard Constructor for a bottomless pitConstructor parameters in za.co.wethinkcode.robots.server.world with type arguments of type Position