Index
All Classes and Interfaces|All Packages
A
- accept(File, String) - Method in class project.app.warzone.Utilities.MyFilenameFilter
- addBorderTerritories(List<Node>) - Method in class project.app.warzone.Model.Node
- ADDCONTINENT - Enum constant in enum class project.app.warzone.Utilities.Commands
-
command to add continent
- ADDCOUNTRY - Enum constant in enum class project.app.warzone.Utilities.Commands
-
command to add country
- addEdgesOfCountry(Node, List<Node>) - Method in class project.app.warzone.Model.Map
-
method used for adding borders
- ADDNEIGHBOUR - Enum constant in enum class project.app.warzone.Utilities.Commands
-
command to add neighbor country
- ADDPLAYER - Enum constant in enum class project.app.warzone.Utilities.Commands
-
command to add player
- addPlayers(String, GameEngine) - Method in class project.app.warzone.Features.PlayerFeatures
- addReinforcementArmies(int) - Method in class project.app.warzone.Model.Player
- assigncountries() - Method in class project.app.warzone.Commands.PlayerCommands
- assignCountries(GameEngine) - Method in class project.app.warzone.Features.PlayerFeatures
- ASSIGNCOUNTRIES - Enum constant in enum class project.app.warzone.Utilities.Commands
-
command to assign countries
C
- clear_orderList() - Method in class project.app.warzone.Model.Player
-
method used to clear order list
- Commands - Enum Class in project.app.warzone.Utilities
-
This enum class is used to store the available gameplay commands
- Continent - Class in project.app.warzone.Model
-
This class is used to store the territories for the map
- Continent(String) - Constructor for class project.app.warzone.Model.Continent
-
Intializing continentName
- Continent(String, Integer) - Constructor for class project.app.warzone.Model.Continent
-
Intializing continentName and bonus
- Country - Class in project.app.warzone.Model
-
This class is a prototype of country
- Country() - Constructor for class project.app.warzone.Model.Country
-
Constructor for Country
- Country(int, String, Continent) - Constructor for class project.app.warzone.Model.Country
-
Constructor for initializing countryname
- Country(int, String, Continent, int, int) - Constructor for class project.app.warzone.Model.Country
-
Constructor for initializing countryname, continent, ownerid, numberofarmies
- createAndInsertCountry(int, String, Continent) - Method in class project.app.warzone.Model.Map
-
method used for creating and inserting country
- createContinent(String, Integer) - Method in class project.app.warzone.Model.Map
-
method used for creating continent
- createNewMapFile(String) - Method in class project.app.warzone.Model.Map
D
- d_CurrentPlayerId - Static variable in class project.app.warzone.Commands.PlayerCommands
- d_gameEngine - Variable in class project.app.warzone.Commands.MapEditorCommands
- d_gameEngine - Variable in class project.app.warzone.Commands.PlayerCommands
- d_listOfCountriesOwned - Variable in class project.app.warzone.Model.Player
- d_listOfOrders - Variable in class project.app.warzone.Model.Player
- d_playerCommands - Variable in class project.app.warzone.Commands.MapEditorCommands
- d_playerFeatures - Variable in class project.app.warzone.Commands.MapEditorCommands
- d_playerFeatures - Variable in class project.app.warzone.Commands.PlayerCommands
- d_playerid - Variable in class project.app.warzone.Model.Player
- d_playername - Variable in class project.app.warzone.Model.Player
- d_playersList - Variable in class project.app.warzone.Model.GameEngine
- d_prevUserCommand - Variable in class project.app.warzone.Commands.PlayerCommands
- d_reinforcementPool - Variable in class project.app.warzone.Model.Player
- deployArmies(int, int) - Method in class project.app.warzone.Commands.OrderCommands
-
command for deploy army
- deployArmies(int, int) - Method in class project.app.warzone.Commands.PlayerCommands
- deployArmies(GameEngine, int, int) - Method in class project.app.warzone.Features.PlayerFeatures
-
This method is used to deploy armies on a country
E
- editcontinent(String, String) - Method in class project.app.warzone.Commands.MapEditorCommands
-
command for editing continent
- editcountry(String, String) - Method in class project.app.warzone.Commands.MapEditorCommands
- editmap(String) - Method in class project.app.warzone.Commands.MapEditorCommands
- EDITMAP - Enum constant in enum class project.app.warzone.Utilities.Commands
-
command to edit map
- editNeighbor(String, String) - Method in class project.app.warzone.Commands.MapEditorCommands
- execute() - Method in class project.app.warzone.Model.Order
-
This method executes the order and deploys the armies on the target country.
- execute_orders() - Method in class project.app.warzone.Model.GameEngine
-
This method is used to execute orders all at once.
F
- fileExists(String) - Method in class project.app.warzone.Model.Map
-
method used to check if file exists
G
- GameEngine - Class in project.app.warzone.Model
-
This class represents the main instance of the Warzone game.
- GameEngine(Map) - Constructor for class project.app.warzone.Model.GameEngine
-
Initializing gameMap and d_playersList
- gameMap - Variable in class project.app.warzone.Model.GameEngine
- gamePlayerAdd(String, String) - Method in class project.app.warzone.Commands.PlayerCommands
-
command for add player
- get_USER_SELECTED_FILE() - Method in class project.app.warzone.Model.Map
-
returns user selected file
- getAllContinents() - Method in class project.app.warzone.Utilities.MapResources
- getAllCountries() - Method in class project.app.warzone.Utilities.MapResources
- getBonus() - Method in class project.app.warzone.Model.Continent
- getBorders() - Method in class project.app.warzone.Model.Node
- getContinent() - Method in class project.app.warzone.Model.Country
- getContinentName() - Method in class project.app.warzone.Model.Continent
- getCountryId() - Method in class project.app.warzone.Model.Country
- getCountryName() - Method in class project.app.warzone.Model.Country
- getData() - Method in class project.app.warzone.Model.Node
- getDataPtr() - Method in class project.app.warzone.Model.Node
- getGameMap() - Method in class project.app.warzone.Model.GameEngine
-
used for returning game map
- getL_Country() - Method in class project.app.warzone.Model.Order
-
This method is used to get territory for the particular order
- getL_numberOfArmies() - Method in class project.app.warzone.Model.Order
-
This method is returns the number of armies mentioned in order
- getL_playerid() - Method in class project.app.warzone.Model.Player
- getL_playername() - Method in class project.app.warzone.Model.Player
- getListOfContinents() - Method in class project.app.warzone.Model.Map
-
method used for returning list of continents
- getlistOfCountriesOwned() - Method in class project.app.warzone.Model.Player
- getListOfTerritories() - Method in class project.app.warzone.Model.Player
- getMapDirectory() - Method in class project.app.warzone.Model.Map
-
method used for returning mapFile location
- getNodes() - Method in class project.app.warzone.Model.Map
-
method used for returning all territories
- getNumberOfArmies() - Method in class project.app.warzone.Model.Country
- getOwnerId() - Method in class project.app.warzone.Model.Country
- getPlayers() - Method in class project.app.warzone.Model.GameEngine
-
used for returning player list
- getReinforcementArmies() - Method in class project.app.warzone.Model.Player
- getReinforcementMap() - Method in class project.app.warzone.Model.Player
I
- initReinforcementArmies(int) - Method in class project.app.warzone.Model.Player
- issue_order(Order) - Method in class project.app.warzone.Model.Player
L
- loadMap(String) - Method in class project.app.warzone.Commands.MapEditorCommands
-
command for loading map for gameplay
- LOADMAP - Enum constant in enum class project.app.warzone.Utilities.Commands
-
command to load map
M
- main(String[]) - Static method in class project.app.warzone.WarzoneApplication
-
main method for warzone
- Map - Class in project.app.warzone.Model
-
This class contains all the continents and countries needed for
- Map() - Constructor for class project.app.warzone.Model.Map
-
Constructor for Map
- MapEditorCommands - Class in project.app.warzone.Commands
-
This class stores all the map-related commands allowed in gameplay
- MapEditorCommands(MapFeatures, GameEngine, PlayerFeatures, MapResources) - Constructor for class project.app.warzone.Commands.MapEditorCommands
-
Constructor for MapEditorCommands
- MapFeatures - Class in project.app.warzone.Features
-
This class stores all the map-related functions in gameplay
- MapFeatures(MapResources) - Constructor for class project.app.warzone.Features.MapFeatures
- mapResouces - Variable in class project.app.warzone.Features.MapFeatures
- MapResources - Class in project.app.warzone.Utilities
-
This class stores the current database for user to create custom maps
- MapResources() - Constructor for class project.app.warzone.Utilities.MapResources
-
Constructor for MapResources
- MyFilenameFilter - Class in project.app.warzone.Utilities
-
This class is used to filter filenames
- MyFilenameFilter(String) - Constructor for class project.app.warzone.Utilities.MyFilenameFilter
-
constructor to initialize object
N
- next_order() - Method in class project.app.warzone.Model.Player
- Node - Class in project.app.warzone.Model
-
This class is the prototype simulating each country
- Node(Country) - Constructor for class project.app.warzone.Model.Node
-
counstructor for Node
O
- Order - Class in project.app.warzone.Model
-
This class is used to prototye the orders for a player in the game.
- Order() - Constructor for class project.app.warzone.Model.Order
- OrderCommands - Class in project.app.warzone.Commands
-
This class stores all the order-related commands allowed in gameplay
- OrderCommands() - Constructor for class project.app.warzone.Commands.OrderCommands
P
- Player - Class in project.app.warzone.Model
-
This class represents a player in the Warzone game.
- Player(int, String) - Constructor for class project.app.warzone.Model.Player
-
Creates a new player with the given ID.
- PlayerCommands - Class in project.app.warzone.Commands
-
This class stores all the player-related commands allowed in gameplay
- PlayerCommands(GameEngine, PlayerFeatures) - Constructor for class project.app.warzone.Commands.PlayerCommands
-
Constructor for Playercommands
- PlayerFeatures - Class in project.app.warzone.Features
-
This class stores all the player-related functions in gameplay
- PlayerFeatures() - Constructor for class project.app.warzone.Features.PlayerFeatures
- prevUserCommand - Variable in class project.app.warzone.Model.GameEngine
- printAllPlayers(GameEngine) - Method in class project.app.warzone.Features.PlayerFeatures
- printMap(Map) - Method in class project.app.warzone.Features.MapFeatures
-
used for displaying map
- printMapDetails(Map<Integer, String>) - Method in class project.app.warzone.Utilities.MapResources
- project.app.warzone - package project.app.warzone
- project.app.warzone.Commands - package project.app.warzone.Commands
- project.app.warzone.Features - package project.app.warzone.Features
- project.app.warzone.Model - package project.app.warzone.Model
- project.app.warzone.Utilities - package project.app.warzone.Utilities
R
- readMap(String) - Method in class project.app.warzone.Features.MapFeatures
-
used for reading map
- removeborderFromFile(Map<String, String>, GameEngine) - Method in class project.app.warzone.Features.MapFeatures
- REMOVECONTINENT - Enum constant in enum class project.app.warzone.Utilities.Commands
-
command to remove continent
- removeContinentFromFile(List<String>, GameEngine) - Method in class project.app.warzone.Features.MapFeatures
- removeCountriesFromFile(List<String>, GameEngine) - Method in class project.app.warzone.Features.MapFeatures
- REMOVECOUNTRY - Enum constant in enum class project.app.warzone.Utilities.Commands
-
command to remove country
- REMOVENEIGHBOUR - Enum constant in enum class project.app.warzone.Utilities.Commands
-
command to remove neighbor country
- REMOVEPLAYER - Enum constant in enum class project.app.warzone.Utilities.Commands
-
command to remove player
- removePlayers(String, GameEngine) - Method in class project.app.warzone.Features.PlayerFeatures
S
- set_USER_SELECTED_FILE(String) - Method in class project.app.warzone.Model.Map
-
method for setting user selected file
- setAllContinents() - Method in class project.app.warzone.Utilities.MapResources
-
method to set all continents
- setAllCountries() - Method in class project.app.warzone.Utilities.MapResources
-
method to set all countries
- setBonus(int) - Method in class project.app.warzone.Model.Continent
- setContinent(Continent) - Method in class project.app.warzone.Model.Country
- setContinentName(String) - Method in class project.app.warzone.Model.Continent
- setCountryName(String) - Method in class project.app.warzone.Model.Country
- setData(Country) - Method in class project.app.warzone.Model.Node
- setL_numberOfArmies(int) - Method in class project.app.warzone.Model.Order
-
This method is used to set armies for the particular order
- setL_playerid(int) - Method in class project.app.warzone.Model.Player
- setL_playername(String) - Method in class project.app.warzone.Model.Player
- setL_territory(Country) - Method in class project.app.warzone.Model.Order
-
This method is user to set Country for the particular order
- setNumberOfArmies(int) - Method in class project.app.warzone.Model.Country
- setOwnerId(int) - Method in class project.app.warzone.Model.Country
- setPlayerIds(GameEngine) - Method in class project.app.warzone.Features.PlayerFeatures
- setReinforcementMap(int) - Method in class project.app.warzone.Model.Player
- setTerritories(Country) - Method in class project.app.warzone.Model.Player
- showAllAssignments(List<Player>) - Method in class project.app.warzone.Features.PlayerFeatures
- showmap() - Method in class project.app.warzone.Commands.MapEditorCommands
-
Display the game map
- SHOWMAP - Enum constant in enum class project.app.warzone.Utilities.Commands
-
command to show map
- showStats() - Method in class project.app.warzone.Commands.PlayerCommands
- showStats(GameEngine) - Method in class project.app.warzone.Features.PlayerFeatures
U
- USER_SELECTED_FILE - Variable in class project.app.warzone.Model.Map
V
- validateByNodes(List<Node>, Map<Node, Boolean>) - Method in class project.app.warzone.Features.MapFeatures
-
used for validation
- validateEntireGraph(GameEngine) - Method in class project.app.warzone.Features.MapFeatures
-
used for validating entire graph
- validateSubGraph(Continent, List<Node>, Map<Node, Boolean>) - Method in class project.app.warzone.Features.MapFeatures
-
used for validating sub-graph
- valueOf(String) - Static method in enum class project.app.warzone.Utilities.Commands
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class project.app.warzone.Utilities.Commands
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- WarzoneApplication - Class in project.app.warzone
-
main class for the warzone application
- WarzoneApplication() - Constructor for class project.app.warzone.WarzoneApplication
- writeContinentsToFile(Map<String, String>, GameEngine) - Method in class project.app.warzone.Features.MapFeatures
- writeCountriesNeighborToFile(Map<String, String>, GameEngine) - Method in class project.app.warzone.Features.MapFeatures
- writeCountriesToFile(Map<String, String>, GameEngine) - Method in class project.app.warzone.Features.MapFeatures
All Classes and Interfaces|All Packages