Package | Description |
---|---|
me.lihq.game.models | |
me.lihq.game.people |
Modifier and Type | Field and Description |
---|---|
Vector2Int |
Room.Transition.from
This is the coordinates that starts the transition
|
Vector2Int |
Room.Transition.newTileCoordinates
The entry point to the room in terms of tiles
|
private Vector2Int |
Clue.tileCoordinates
This is the location on the map in terms of tiles can be set using
Clue.setTileCoordinates(int, int)
Note: this is different to com.badlogic.gdx.graphics.g2d.Sprite.position that is the position on the screen in terms of pixels,
whereas this is in terms of map tiles relative to the bottom left of the map. |
Modifier and Type | Field and Description |
---|---|
java.util.List<Vector2Int> |
Room.hidingSpots
This list stores the coordinates of all hideable slots in this room
|
Modifier and Type | Method and Description |
---|---|
Vector2Int |
Clue.getPosition()
This method gets the Clue's current tile location on the map as a Vector2Int
|
Vector2Int |
Room.getRandHidingSpot()
This gets a random possible location to hide a clue in
|
Vector2Int |
Room.getRandomLocation()
This method returns a random location in the room that is walkable
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Vector2Int> |
Room.getHidingSpots()
This will check the map for any potential hiding locations, and returns them as a list of
coordinates.
|
Modifier and Type | Method and Description |
---|---|
private Room.Transition |
Room.hasTransition(Vector2Int v)
This method checks through all the transitions of this room and if one exists where the FROM property is equal to the parameter 'v' then
it returns that Transition, else, it returns null
|
Clue |
Clue.setTileCoordinates(Vector2Int v)
This method calls the method of the same name but allows a Vector2Int as a parameter rather than
the specific coordinates.
|
Modifier and Type | Field and Description |
---|---|
protected Vector2Int |
AbstractPerson.destinationTile
A store of the destination for a movement.
|
protected Vector2Int |
AbstractPerson.startTile
A store of the starting point for a movement.
|
protected Vector2Int |
AbstractPerson.tileCoordinates
This is the location of the person in the room in terms of tiles eg (0,0) would be the bottom left of the room
Uses the Vector2Int as the tileCoordinates should never be floats as the person should only be between tiles during the move process.
|
Modifier and Type | Method and Description |
---|---|
Vector2Int |
AbstractPerson.getTileCoordinates()
This method gets the Persons tile coordinates
|