Uses of Class
za.co.wethinkcode.robots.server.world.Position
Packages that use Position
Package
Description
Classes and submodules in this module are responsible for configuring the server
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.server.config
Methods in za.co.wethinkcode.robots.server.config that return types with arguments of type Position -
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 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 occupyObstacles.getAll()org.apache.commons.collections4.bidimap.DualHashBidiMap<Position, WorldObject> RobotWorldMap.getMap()MazeGenerator.getObstacles()World.getObstacles()World.getRandomSpawn()Obstacles.iterator()Methods in za.co.wethinkcode.robots.server.world with parameters of type PositionModifier and TypeMethodDescriptionvoidObstacles.addObstacle(Position pos) booleanObstacles.hasObstacle(Position pos) booleanWorld.isValidPosition(Position p) booleanWorldMap.isValidPosition(Position p) A position is valid for a robot to occupy if it is within the bounds of the world, is not a wall, is not an obstacle, and is not already occupied by another robot.Constructors in za.co.wethinkcode.robots.server.world with parameters of type PositionConstructor parameters in za.co.wethinkcode.robots.server.world with type arguments of type PositionModifierConstructorDescriptionWorldMap(int width, int height, MazeGenerator maze, List<Position> obstacles, Supplier<Collection<Robot>> robots)