Skip navigation links
A C D E G H I L M N O P R S T W 

A

ACCEPTED - Static variable in class edu.illinois.cs.cs125.spring2020.mp.logic.PlayerStateID
Involved in the game (accepted the invitation) but not currently playing.
API_BASE - Static variable in class edu.illinois.cs.cs125.spring2020.mp.logic.WebApi
The URL at which the server is hosted.
AreaDivider - Class in edu.illinois.cs.cs125.spring2020.mp.logic
Divides a rectangular area into identically sized, roughly square cells.
AreaDivider(double, double, double, double, int) - Constructor for class edu.illinois.cs.cs125.spring2020.mp.logic.AreaDivider
Creates an AreaDivider for an area.
AreaGame - Class in edu.illinois.cs.cs125.spring2020.mp.logic
Represents an area mode game.
AreaGame(String, GoogleMap, WebSocket, JsonObject, Context) - Constructor for class edu.illinois.cs.cs125.spring2020.mp.logic.AreaGame
Creates a game in area mode.
areaMode(List<Invitee>, LatLngBounds, int) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.GameSetup
Creates a JSON object representing the configuration of a multiplayer area mode game.

C

connectWebSocket(String, Consumer<JsonObject>, Consumer<WebSocket>, Runnable, Consumer<Throwable>) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.WebApi
Connects to a websocket.

D

distance(double, double, double, double) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.LatLngUtils
Computes the distance between two points.
distance(LatLng, LatLng) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.LatLngUtils
Computes the distance between two points represented as LatLngs.

E

edu.illinois.cs.cs125.spring2020.mp - package edu.illinois.cs.cs125.spring2020.mp
 
edu.illinois.cs.cs125.spring2020.mp.logic - package edu.illinois.cs.cs125.spring2020.mp.logic
 
ENDED - Static variable in class edu.illinois.cs.cs125.spring2020.mp.logic.GameStateID
The game is over.

G

Game - Class in edu.illinois.cs.cs125.spring2020.mp.logic
Represents a multiplayer game, providing or defining methods common to all game modes.
Game(String, GoogleMap, WebSocket, JsonObject, Context) - Constructor for class edu.illinois.cs.cs125.spring2020.mp.logic.Game
Sets up this Game.
GameActivity - Class in edu.illinois.cs.cs125.spring2020.mp
Represents the game activity, where the user plays the game and sees its state.
GameActivity() - Constructor for class edu.illinois.cs.cs125.spring2020.mp.GameActivity
 
GameSetup - Class in edu.illinois.cs.cs125.spring2020.mp.logic
Provides static methods to convert game information to JSON payloads that can be POSTed to the server's /games/create endpoint to create a multiplayer game.
GameSetup() - Constructor for class edu.illinois.cs.cs125.spring2020.mp.logic.GameSetup
 
GameStateID - Class in edu.illinois.cs.cs125.spring2020.mp.logic
Holds the constant values for the possible game states.
GameStateID() - Constructor for class edu.illinois.cs.cs125.spring2020.mp.logic.GameStateID
 
GameSummary - Class in edu.illinois.cs.cs125.spring2020.mp.logic
Extracts summary information about a game from JSON provided by the server.
GameSummary(JsonObject) - Constructor for class edu.illinois.cs.cs125.spring2020.mp.logic.GameSummary
Creates a game summary from JSON from the server.
getCellBounds(int, int) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.AreaDivider
Gets the boundaries of the specified cell as a Google Maps LatLngBounds object.
getContext() - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.Game
Gets the UI context.
getEmail() - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.Game
Gets the user's email address.
getEmail() - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.Invitee
Gets the email address.
getId() - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.GameSummary
Gets the unique, server-assigned ID of this game.
getMap() - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.Game
Gets the Google Maps view used by this Game.
getMode() - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.GameSummary
Gets the mode of this game, either area or target.
getMyTeam() - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.Game
Gets the user's team ID in this game.
getOwner() - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.GameSummary
Gets the owner/creator of this game.
getPlayerRole(String, Context) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.GameSummary
Gets the name of the user's team/role.
getPosition() - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.Target
Gets the position of the target.
getTeam() - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.Target
Gets the ID of the team currently owning this target.
getTeamId() - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.Invitee
Gets the team/role.
getTeamScore(int) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.AreaGame
Gets a team's score in this area mode game.
getTeamScore(int) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.Game
Gets a team's score.
getTeamScore(int) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.TargetGame
Gets a team's score in this target mode game.
getWinningTeam() - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.Game
Determines which team has the most points.
getXCells() - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.AreaDivider
Gets the number of cells between the west and east boundaries.
getXIndex(LatLng) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.AreaDivider
Gets the X coordinate of the cell containing the specified location.
getYCells() - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.AreaDivider
Gets the number of cells between the south and north boundaries.
getYIndex(LatLng) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.AreaDivider
Gets the Y coordinate of the cell containing the specified location.

H

handleMessage(JsonObject) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.AreaGame
Processes an update from the server.
handleMessage(JsonObject) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.Game
Processes an update from the server.
handleMessage(JsonObject) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.TargetGame
Processes an update from the server.

I

INVITED - Static variable in class edu.illinois.cs.cs125.spring2020.mp.logic.PlayerStateID
Invited to the game but has not yet responded to the invitation.
Invitee - Class in edu.illinois.cs.cs125.spring2020.mp.logic
Represents a person invited to a game in the game setup activity.
Invitee(String, int) - Constructor for class edu.illinois.cs.cs125.spring2020.mp.logic.Invitee
Creates a new Invitee (player record).
isInvitation(String) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.GameSummary
Determines whether this game is an invitation to the user.
isOngoing(String) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.GameSummary
Determines whether the user is currently involved in this game.
isValid() - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.AreaDivider
Returns whether the configuration provided to the constructor is valid.

L

LatLngUtils - Class in edu.illinois.cs.cs125.spring2020.mp.logic
Holds helpful static methods for working with locations.
LaunchActivity - Class in edu.illinois.cs.cs125.spring2020.mp
Represents the launcher activity that ensures the user is logged in.
LaunchActivity() - Constructor for class edu.illinois.cs.cs125.spring2020.mp.LaunchActivity
 
LineCrossDetector - Class in edu.illinois.cs.cs125.spring2020.mp.logic
Holds a method to determine whether two lines cross.
LineCrossDetector() - Constructor for class edu.illinois.cs.cs125.spring2020.mp.logic.LineCrossDetector
 
linesCross(LatLng, LatLng, LatLng, LatLng) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.LineCrossDetector
Determines whether two lines cross on a map.
LocationListenerService - Class in edu.illinois.cs.cs125.spring2020.mp
A foreground service to allow listening for location updates during the game even when the screen is turned off.
LocationListenerService() - Constructor for class edu.illinois.cs.cs125.spring2020.mp.LocationListenerService
 
locationUpdated(LatLng) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.AreaGame
Called when the user's location changes.
locationUpdated(LatLng) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.Game
Processes a location change and makes appropriate changes/notifications.
locationUpdated(LatLng) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.TargetGame
Called when the user's location changes.

M

MainActivity - Class in edu.illinois.cs.cs125.spring2020.mp
Represents the main screen of the app, where the user can view and enter games.
MainActivity() - Constructor for class edu.illinois.cs.cs125.spring2020.mp.MainActivity
 
MapEnabledScrollView - Class in edu.illinois.cs.cs125.spring2020.mp
A ScrollView that allows map fragments inside it to be panned vertically.
MapEnabledScrollView(Context) - Constructor for class edu.illinois.cs.cs125.spring2020.mp.MapEnabledScrollView
Creates a MapEnabledScrollView UI control.
MapEnabledScrollView(Context, AttributeSet) - Constructor for class edu.illinois.cs.cs125.spring2020.mp.MapEnabledScrollView
Creates a MapEnabledScrollView UI control.
MapEnabledScrollView(Context, AttributeSet, int) - Constructor for class edu.illinois.cs.cs125.spring2020.mp.MapEnabledScrollView
Creates a MapEnabledScrollView UI control.
MapEnabledScrollView(Context, AttributeSet, int, int) - Constructor for class edu.illinois.cs.cs125.spring2020.mp.MapEnabledScrollView
Creates a MapEnabledScrollView UI control.
MAX_TEAM - Static variable in class edu.illinois.cs.cs125.spring2020.mp.logic.TeamID
The largest valid team ID (inclusive).
MIN_TEAM - Static variable in class edu.illinois.cs.cs125.spring2020.mp.logic.TeamID
The smallest valid (non-observer) team ID.

N

NewGameActivity - Class in edu.illinois.cs.cs125.spring2020.mp
Represents the game creation screen, where the user configures a new game.
NewGameActivity() - Constructor for class edu.illinois.cs.cs125.spring2020.mp.NewGameActivity
 
NUM_TEAMS - Static variable in class edu.illinois.cs.cs125.spring2020.mp.logic.TeamID
How many teams there can be in a game.

O

OBSERVER - Static variable in class edu.illinois.cs.cs125.spring2020.mp.logic.TeamID
An observer, not actually playing.
onActivityResult(int, int, Intent) - Method in class edu.illinois.cs.cs125.spring2020.mp.LaunchActivity
 
onBind(Intent) - Method in class edu.illinois.cs.cs125.spring2020.mp.LocationListenerService
Called when a component tries to bind to the service for interprocess communication.
onCreate(Bundle) - Method in class edu.illinois.cs.cs125.spring2020.mp.GameActivity
Called by the Android system when the activity is to be set up.
onCreate(Bundle) - Method in class edu.illinois.cs.cs125.spring2020.mp.LaunchActivity
 
onCreate() - Method in class edu.illinois.cs.cs125.spring2020.mp.LocationListenerService
Called when the service is created.
onCreate(Bundle) - Method in class edu.illinois.cs.cs125.spring2020.mp.MainActivity
Called by the Android system when the activity is to be set up.
onCreate(Bundle) - Method in class edu.illinois.cs.cs125.spring2020.mp.NewGameActivity
 
onDestroy() - Method in class edu.illinois.cs.cs125.spring2020.mp.GameActivity
Called by the Android system when the activity is shut down and cannot be returned to.
onDestroy() - Method in class edu.illinois.cs.cs125.spring2020.mp.LocationListenerService
Called when the service is fully shut down.
onInterceptTouchEvent(MotionEvent) - Method in class edu.illinois.cs.cs125.spring2020.mp.MapEnabledScrollView
Called when a touch event is being sent down the view hierarchy.
onRequestPermissionsResult(int, String[], int[]) - Method in class edu.illinois.cs.cs125.spring2020.mp.GameActivity
Called by the Android system when the user has responded to a permissions request.
onRestart() - Method in class edu.illinois.cs.cs125.spring2020.mp.MainActivity
 
onStartCommand(Intent, int, int) - Method in class edu.illinois.cs.cs125.spring2020.mp.LocationListenerService
Called when the service is started.
onTouchEvent(MotionEvent) - Method in class edu.illinois.cs.cs125.spring2020.mp.MapEnabledScrollView
Called when this view needs to handle a touch event.

P

PAUSED - Static variable in class edu.illinois.cs.cs125.spring2020.mp.logic.GameStateID
The game is ongoing but paused.
PlayerStateID - Class in edu.illinois.cs.cs125.spring2020.mp.logic
Holds constant values for possible player states.
PlayerStateID() - Constructor for class edu.illinois.cs.cs125.spring2020.mp.logic.PlayerStateID
 
PLAYING - Static variable in class edu.illinois.cs.cs125.spring2020.mp.logic.PlayerStateID
Using the app to play this game right now.

R

REMOVED - Static variable in class edu.illinois.cs.cs125.spring2020.mp.logic.PlayerStateID
Declined the invitation or left the game.
renderGrid(GoogleMap) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.AreaDivider
Draws the grid to a map using solid black polylines.
RUNNING - Static variable in class edu.illinois.cs.cs125.spring2020.mp.logic.GameStateID
The game is running.

S

same(double, double) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.LatLngUtils
Determines whether two location-related coordinates are similar enough to be considered the same.
same(double, double, double, double) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.LatLngUtils
Determines whether two points are similar enough to be considered the same spot.
same(LatLng, LatLng) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.LatLngUtils
Determines whether two points are similar enough to be considered the same spot.
sendMessage(JsonObject) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.Game
Sends a message to the server.
setEmail(String) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.Invitee
Sets the email address.
setTeam(int) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.Target
Updates the owning team of this target and updates the hue of the marker to match.
setTeamId(int) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.Invitee
Sets the team/role.
startRequest(Context, String, Response.Listener<JsonObject>, Response.ErrorListener) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.WebApi
Starts an HTTP GET request.
startRequest(Context, String, int, JsonElement, Response.Listener<JsonObject>, Response.ErrorListener) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.WebApi
Starts a network request with a JSON object as the payload.

T

Target - Class in edu.illinois.cs.cs125.spring2020.mp.logic
Represents a target in an ongoing target-mode game and manages the marker displaying it.
Target(GoogleMap, LatLng, int) - Constructor for class edu.illinois.cs.cs125.spring2020.mp.logic.Target
Creates a target in a target-mode game by placing an appropriately colored marker on the map.
TargetGame - Class in edu.illinois.cs.cs125.spring2020.mp.logic
Represents a target mode game.
TargetGame(String, GoogleMap, WebSocket, JsonObject, Context) - Constructor for class edu.illinois.cs.cs125.spring2020.mp.logic.TargetGame
Creates a game in target mode.
targetMode(List<Invitee>, List<LatLng>, int) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.GameSetup
Creates a JSON object representing the configuration of a multiplayer target mode game.
TEAM_BLUE - Static variable in class edu.illinois.cs.cs125.spring2020.mp.logic.TeamID
A player on the blue team.
TEAM_GREEN - Static variable in class edu.illinois.cs.cs125.spring2020.mp.logic.TeamID
A player on the green team.
TEAM_RED - Static variable in class edu.illinois.cs.cs125.spring2020.mp.logic.TeamID
A player on the red team.
TEAM_YELLOW - Static variable in class edu.illinois.cs.cs125.spring2020.mp.logic.TeamID
A player on the yellow team.
TeamID - Class in edu.illinois.cs.cs125.spring2020.mp.logic
Holds team/role ID constants.
TeamID() - Constructor for class edu.illinois.cs.cs125.spring2020.mp.logic.TeamID
 

W

WebApi - Class in edu.illinois.cs.cs125.spring2020.mp.logic
Provides methods for contacting the server.
WEBSOCKET_BASE - Static variable in class edu.illinois.cs.cs125.spring2020.mp.logic.WebApi
The URL at which the webserver socket is hosted.
A C D E G H I L M N O P R S T W 
Skip navigation links