Skip navigation links
A C D E G H I L M N O P R S T U V 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.
addLine(double, double, double, double, int) - Method in class edu.illinois.cs.cs125.spring2020.mp.GameActivity
Adds a colored line to the Google map.
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.

C

changeMarkerColor(double, double, float) - Method in class edu.illinois.cs.cs125.spring2020.mp.GameActivity
Changes the hue of the marker at the specified position.
checkSnakeRule(double[], double[], int[], int) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.TargetVisitChecker
Determines whether the specified target can be visited without violating the snake rule.
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

DefaultTargets - Class in edu.illinois.cs.cs125.spring2020.mp.logic
Loads the default targets for local games in Checkpoints 0 through 3.
disable() - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.DefaultTargets
Disables this class's functionality entirely.
disableIndependentArrays() - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.DefaultTargets
Disables the getLatitudes and getLongitudes functions.
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
 
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
 
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.
getLatitudes(Context) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.DefaultTargets
Gets an array of the targets' latitudes.
getLongitudes(Context) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.DefaultTargets
Gets an array of the targets' longitudes.
getMap() - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.Game
Gets the Google Maps view used by this Game.
getMyTeam() - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.Game
Gets the user's team ID in this game.
getPositions(Context) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.DefaultTargets
Gets the positions of the default targets as LatLng instances.
getTeamScore(int) - Method in class edu.illinois.cs.cs125.spring2020.mp.logic.Game
Gets a team's score.
getVisitCandidate(double[], double[], int[], double, double, int) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.TargetVisitChecker
Gets an index of an unvisited target within the specified range of the current location.
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.Game
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.
isTargetVisited(int[], int) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.TargetVisitChecker
Determines whether a target is already visited.
isTargetWithinRange(double[], double[], int, double, double, int) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.TargetVisitChecker
Determines whether the specified target is within range of the current location.
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.
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(double, double, double, double, double, double, double, double) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.LineCrossDetector
Determines whether two lines cross.
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.Game
Processes a location change and makes appropriate changes/notifications.

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.
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() - 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.
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.
placeMarker(double, double) - Method in class edu.illinois.cs.cs125.spring2020.mp.GameActivity
Places a marker on the map at the specified coordinates.
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.
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

TargetVisitChecker - Class in edu.illinois.cs.cs125.spring2020.mp.logic
Holds methods for managing a path of target claims.
TargetVisitChecker() - Constructor for class edu.illinois.cs.cs125.spring2020.mp.logic.TargetVisitChecker
 
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
 

U

updateLocation(double, double) - Method in class edu.illinois.cs.cs125.spring2020.mp.GameActivity
Called when a high-confidence location update is available.

V

visitTarget(int[], int) - Static method in class edu.illinois.cs.cs125.spring2020.mp.logic.TargetVisitChecker
Marks a target captured by putting its index in the first available (-1) slot of the path array.

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 U V W 
Skip navigation links