A B C D E G H I L M N P R S T U V

A

accept(IMoneyVisitor) - Method in interface battlehex.model.map.IMoney
Retrieve territory information.
accept(ITerritoryVisitor) - Method in interface battlehex.model.map.ITerritory
Retrieve territory information.
accept(IMoneyVisitor) - Method in class battlehex.model.map.Money
Retrieve territory information.
accept(ITerritoryVisitor) - Method in class battlehex.model.map.Territory
Retrieve territory information.
add(IMoney) - Method in interface battlehex.model.map.IMoney
Add the given money.
add(ITile) - Method in interface battlehex.model.map.ITerritory
Add a tile to the territory.
add(IMoney) - Method in class battlehex.model.map.Money
Add the given money.
add(ITile) - Method in class battlehex.model.map.Territory
Add a tile to the territory.

The tile is first removed from its territory if any.

addLayoutComponent(String, Component) - Method in class battlehex.ui.main.PassiveLayout

B

BaseState - class battlehex.controller.BaseState.
Handles the default base state.
BaseState(IConsumer, ITerritoryObserver) - Constructor for class battlehex.controller.BaseState
Create a base state.
BattleHex - class battlehex.BattleHex.
Boostraps the application.
battlehex - package battlehex
Provides the application bootstrap.
battlehex.controller - package battlehex.controller
Plays the role of a controller as in the MVC pattern.
battlehex.model - package battlehex.model
Plays the role of a model as in the MVC pattern.
battlehex.model.command - package battlehex.model.command
Regroups all commands.
battlehex.model.map - package battlehex.model.map
Provides the features of the game map.
battlehex.model.player - package battlehex.model.player
Provides player related components.
battlehex.ui.main - package battlehex.ui.main
Contains the main graphical user interface classes.
battlehex.ui.startup - package battlehex.ui.startup
Contains the graphical user interface classes related to startup.
buy(int) - Method in interface battlehex.model.map.IMoney
Decrease the amount for the current fundings.
buy(int) - Method in interface battlehex.model.map.ITerritory
Decrease the amount for the current fundings.
buy(int) - Method in class battlehex.model.map.Money
Decrease the amount for the current fundings.

This operation should fail of it cannot be afforded.

buy(int) - Method in class battlehex.model.map.Territory
Decrease the amount for the current fundings.

This operation should fail of it cannot be afforded.


C

Capital - class battlehex.model.map.Capital.
Represents a castle.
Capital() - Constructor for class battlehex.model.map.Capital
 
Castle - class battlehex.model.map.Castle.
Handles a castle entity.
Castle() - Constructor for class battlehex.model.map.Castle
 
CastleBuy - class battlehex.model.command.CastleBuy.
Buys a castle.
CastleBuy(Coordinate) - Constructor for class battlehex.model.command.CastleBuy
Create a castle buy order.
ControlDisplay - class battlehex.ui.main.ControlDisplay.
Implements the right vertical bar of the display.
ControlDisplay(IController, IContext, JComponent, JComponent) - Constructor for class battlehex.ui.main.ControlDisplay
Create the control panel.
Controller - class battlehex.controller.Controller.
Controller implementation.
Controller(IContext, IConsumer) - Constructor for class battlehex.controller.Controller
Create a controller.
CurrentPlayerDisplayer - class battlehex.ui.main.CurrentPlayerDisplayer.
Implements a component displaying the current player as a tile filled with the player color.
CurrentPlayerDisplayer(IContext, IHexagonBuilder) - Constructor for class battlehex.ui.main.CurrentPlayerDisplayer
Create a component to display the current player.
CyclicIterator - class battlehex.model.player.CyclicIterator.
Implements an iterator providing a cyclic infinite iteration.
CyclicIterator(Vector) - Constructor for class battlehex.model.player.CyclicIterator
Create a cyclic iterator.
canAfford(int) - Method in interface battlehex.model.map.IMoney
Test if a buy can be afforded.
canAfford(int) - Method in interface battlehex.model.map.ITerritory
Test if a buy can be afforded.
canAfford(int) - Method in class battlehex.model.map.Money
Test if a buy can be afforded.
canAfford(int) - Method in class battlehex.model.map.Territory
Test if a buy can be afforded.
capture(ITile) - Method in interface battlehex.model.map.ITile
Capture a tile from another tile.
capture(ITile) - Method in class battlehex.model.map.Tile
Capture a tile from another tile.
click(ITerritory, Coordinate) - Method in class battlehex.controller.BaseState
Handle a click event at a given coordinate within a given territory.
click(Coordinate) - Method in class battlehex.controller.Controller
Notify of a click event on the map.
click(ITerritory, Coordinate) - Method in interface battlehex.controller.IState
Handle a click event at a given coordinate within a given territory.
click(ITerritory, Coordinate) - Method in class battlehex.controller.PlacementPendingState
Handle a click event at a given coordinate within a given territory.
click(ITerritory, Coordinate) - Method in class battlehex.controller.TerritorySelectedState
Handle a click event at a given coordinate within a given territory.
click(Coordinate) - Method in interface battlehex.ui.main.IController
Notify of a click event on the map.
connected() - Method in class battlehex.Logger
contains(ITile) - Method in interface battlehex.model.map.ITerritory
Test if a tile belong to a territory.
contains(ITile) - Method in class battlehex.model.map.Territory
Test if a tile belong to a territory.
create(Coordinate, IPlayer) - Method in interface battlehex.model.map.ITileFactory
Create a tile owned by a given player.
create(Coordinate, IPlayer) - Method in class battlehex.model.map.TileFactory
Create a tile owned by a given player.
createClient(String, int) - Method in class battlehex.GameFactory
Create a client connected to a distant server.
createClient(String, int) - Method in interface battlehex.ui.startup.IGameFactory
Create a client connected to a distant server.
createDedicatedServer(int) - Method in class battlehex.GameFactory
Create a dedicated server.
createDedicatedServer(int) - Method in interface battlehex.ui.startup.IGameFactory
Create a dedicated server.
createServer(int) - Method in class battlehex.GameFactory
Create a local server.
createServer(int) - Method in interface battlehex.ui.startup.IGameFactory
Create a local server.
createStandalone() - Method in class battlehex.GameFactory
Create a standalone game.
createStandalone() - Method in interface battlehex.ui.startup.IGameFactory
Create a standalone game.

D

disconnected() - Method in class battlehex.Logger
drag(Coordinate, Coordinate) - Method in class battlehex.controller.Controller
Notify of a drag and drop event on the map.
drag(Coordinate, Coordinate) - Method in interface battlehex.ui.main.IController
Notify of a drag and drop event on the map.

E

EndTurn - class battlehex.model.command.EndTurn.
Ends player turn.
EndTurn() - Constructor for class battlehex.model.command.EndTurn
 
endTurn() - Method in class battlehex.controller.Controller
Trigger a turn end.
endTurn(IGameHandler) - Method in class battlehex.model.command.Game
Manage current player end turn.
endTurn(IGameHandler) - Method in interface battlehex.model.command.IGame
Manage current player end turn.
endTurn() - Method in interface battlehex.ui.main.IController
Trigger a turn end.
execute(IContext) - Method in class battlehex.model.command.CastleBuy
execute(IContext) - Method in class battlehex.model.command.EndTurn
execute(IContext) - Method in class battlehex.model.command.GridUpdate
execute(IContext) - Method in class battlehex.model.command.IncomePayment
execute(IContext) - Method in class battlehex.model.command.Move
execute(IContext) - Method in class battlehex.model.command.NewGame
execute(IContext) - Method in class battlehex.model.command.PlayerUpdate
execute(IContext) - Method in class battlehex.model.command.TurnUpdate

G

Game - class battlehex.model.command.Game.
Manages the game sequence.
Game(IPlayerManager) - Constructor for class battlehex.model.command.Game
Create a game.
GameDisplayer - class battlehex.ui.main.GameDisplayer.
Assembles the map and the control components and provides scrolling.
GameDisplayer(JComponent, JComponent) - Constructor for class battlehex.ui.main.GameDisplayer
Create a game displayer.
GameFactory - class battlehex.GameFactory.
Copes with the game creation.
GameFactory() - Constructor for class battlehex.GameFactory
 
GameTypeChoiceView - class battlehex.ui.startup.GameTypeChoiceView.
 
GameTypeChoiceView(IGameFactory) - Constructor for class battlehex.ui.startup.GameTypeChoiceView
Create a game type choice view.
GridDisplayer - class battlehex.ui.main.GridDisplayer.
Implements a component for displaying the map.
GridDisplayer(IController, IContext, IHexagonBuilder, JComponent) - Constructor for class battlehex.ui.main.GridDisplayer
Create a grid displayer.
GridUpdate - class battlehex.model.command.GridUpdate.
Updates a grid.
GridUpdate(IGrid) - Constructor for class battlehex.model.command.GridUpdate
Create a complete update.
getColor() - Method in class battlehex.model.map.Capital
Retrieve the entity color.
getColor() - Method in class battlehex.model.map.Castle
Retrieve the entity color.
getColor() - Method in interface battlehex.model.map.IEntity
Retrieve the entity color.
getColor() - Method in interface battlehex.model.map.ITerritory
Retrieve territory color.
getColor() - Method in interface battlehex.model.map.ITile
Retrieve current color.
getColor() - Method in class battlehex.model.map.Territory
Retrieve territory color.
getColor() - Method in class battlehex.model.map.Tile
The color of the tile.
getColor() - Method in interface battlehex.model.player.IPlayer
Retrieve the color associated to the player.
getColor() - Method in class battlehex.model.player.Player
Retrieve the color associated to the player.
getEntity() - Method in interface battlehex.model.map.ITile
Retrieve the current entity located on the tile.
getEntity() - Method in class battlehex.model.map.Tile
Retrieve the entity in the tile.
getMinimumSize() - Method in class battlehex.ui.main.CurrentPlayerDisplayer
getPreferredSize() - Method in class battlehex.ui.main.CurrentPlayerDisplayer
getTerritory() - Method in interface battlehex.model.map.ITile
Retrieve the territory.
getTerritory() - Method in class battlehex.model.map.Tile
Retrieve the territory.

H

hasNext() - Method in class battlehex.model.map.SubTerritoryIterator
 
hasNext() - Method in class battlehex.model.player.CyclicIterator

I

IController - interface battlehex.ui.main.IController.
Defines a controller component.
IEntity - interface battlehex.model.map.IEntity.
Defines an entity.
IGame - interface battlehex.model.command.IGame.
This interface defines a game.
IGameFactory - interface battlehex.ui.startup.IGameFactory.
Defines a game type handler.
IGameHandler - interface battlehex.model.command.IGameHandler.
Game handler definition.
IGridObserver - interface battlehex.model.IGridObserver.
Defines a callback to receive grid update events.
IMoney - interface battlehex.model.map.IMoney.
Defines money management operations.
IMoneyVisitor - interface battlehex.model.map.IMoneyVisitor.
Implements a visitor to retrieve money information.
IPlayer - interface battlehex.model.player.IPlayer.
Player definition.
IPlayerManager - interface battlehex.model.player.IPlayerManager.
Player manager definition.
IPlayerObserver - interface battlehex.model.IPlayerObserver.
Defines an observer for player change.
ISelection - interface battlehex.ui.main.ISelection.
Defines a territory selection callback.
IState - interface battlehex.controller.IState.
Represents the controller state.
ISurrounding - interface battlehex.model.map.ISurrounding.
Defines the surrounding of a tile.
ITerritory - interface battlehex.model.map.ITerritory.
Defines territory bahaviour.
ITerritoryObserver - interface battlehex.controller.ITerritoryObserver.
Defines a territory selection callback.
ITerritoryVisitor - interface battlehex.model.map.ITerritoryVisitor.
Implements a visitor to retrieve territory info.
ITile - interface battlehex.model.map.ITile.
Defines tile behaviour.
ITileFactory - interface battlehex.model.map.ITileFactory.
Defines a factory for tile creation.
ITurnObserver - interface battlehex.model.ITurnObserver.
Defines an observer for turn change.
IncomePayment - class battlehex.model.command.IncomePayment.
Pays territories income.
IncomePayment() - Constructor for class battlehex.model.command.IncomePayment
 
isNeighbour(ITile) - Method in interface battlehex.model.map.ISurrounding
Check if a tile is next to the territory.
isNeighbour(ITile) - Method in interface battlehex.model.map.ITile
Check if another tile is next to the current one.
isNeighbour(ITile) - Method in class battlehex.model.map.Surrounding
Check if a tile is next to the territory.
isNeighbour(ITile) - Method in class battlehex.model.map.Tile
Check if another tile is next to the current one.
isNextTo(ITile) - Method in interface battlehex.model.map.ITerritory
Test if a tile lays next to the territory.
isNextTo(ITile) - Method in class battlehex.model.map.Territory
Test if a tile lays next to the territory.

This method returns true if the tile is within the territory.

isOwnedBy(IPlayer) - Method in interface battlehex.model.map.ITerritory
Check whether the territory is owned by a given player.
isOwnedBy(IPlayer) - Method in class battlehex.model.map.Territory
Check whether the territory is owned by a given player.
isValid() - Method in interface battlehex.model.map.ITerritory
Check if the territory is valid.
isValid() - Method in class battlehex.model.map.Territory
Check if the territory is valid.
iterator() - Method in interface battlehex.model.player.IPlayerManager
Retrieve an iterator on players.
iterator() - Method in class battlehex.model.player.PlayerManager
Retrieve an iterator on players.

L

Logger - class battlehex.Logger.
Implements a simple connection logger.
Logger() - Constructor for class battlehex.Logger
Create a connection view logger.
layoutContainer(Container) - Method in class battlehex.ui.main.PassiveLayout

M

MapGenerator - class battlehex.model.command.MapGenerator.
Provides map random creation.
MapGenerator(ITileFactory) - Constructor for class battlehex.model.command.MapGenerator
Create a map generator.
Money - class battlehex.model.map.Money.
Implements a territory money case.
Money() - Constructor for class battlehex.model.map.Money
Create a money.
Move - class battlehex.model.command.Move.
Captures a tile.
Move(Coordinate, Coordinate) - Constructor for class battlehex.model.command.Move
Create a move command.
main(String[]) - Static method in class battlehex.BattleHex
Application bootstrap.
merge(ITerritory) - Method in interface battlehex.model.map.ISurrounding
Merge the territory with the surrounding ones.
merge(ITerritory) - Method in interface battlehex.model.map.ITerritory
Merges the territory into the given one.
merge(ITerritory) - Method in class battlehex.model.map.Surrounding
Merge the territory with the surrounding ones.
merge(ITerritory) - Method in class battlehex.model.map.Territory
Merges the territory into the given one.
minimumLayoutSize(Container) - Method in class battlehex.ui.main.PassiveLayout

N

NewGame - class battlehex.model.command.NewGame.
Creates a new game.
NewGame() - Constructor for class battlehex.model.command.NewGame
 
newGame() - Method in class battlehex.controller.Controller
Create a new game.
newGame() - Method in interface battlehex.ui.main.IController
Create a new game.
next() - Method in class battlehex.model.Turn
Increment the turn number.
next() - Method in class battlehex.model.map.SubTerritoryIterator
 
next() - Method in class battlehex.model.player.CyclicIterator
next() - Method in interface battlehex.model.player.IPlayerManager
Proceed to the next player to play.
next() - Method in class battlehex.model.player.PlayerManager
Proceed to the next player to play.

P

PassiveLayout - class battlehex.ui.main.PassiveLayout.
Provides a layout that let its components place themselves.
PassiveLayout() - Constructor for class battlehex.ui.main.PassiveLayout
Create a passive layout.
PlacementPendingState - class battlehex.controller.PlacementPendingState.
Manages an entity placement within a given territory.
PlacementPendingState(IConsumer, ITerritoryObserver, ITerritory) - Constructor for class battlehex.controller.PlacementPendingState
Create a state to place an entity within a given territory.
Player - class battlehex.model.player.Player.
Implements a player.
Player(Color) - Constructor for class battlehex.model.player.Player
Create a player.
PlayerManager - class battlehex.model.player.PlayerManager.
Creates and manages players.
PlayerManager(int) - Constructor for class battlehex.model.player.PlayerManager
Create a player manager.
PlayerUpdate - class battlehex.model.command.PlayerUpdate.
Updates the current player.
PlayerUpdate(IPlayer) - Constructor for class battlehex.model.command.PlayerUpdate
Create a player update.
PolygonDisplayer - class battlehex.ui.main.PolygonDisplayer.
Implements a component for displaying a polygon.
PolygonDisplayer(Polygon) - Constructor for class battlehex.ui.main.PolygonDisplayer
Create a polygon displayer.
paintChildren(Graphics) - Method in class battlehex.ui.main.GameDisplayer
paintComponent(Graphics) - Method in class battlehex.ui.main.CurrentPlayerDisplayer
paintComponent(Graphics) - Method in class battlehex.ui.main.PolygonDisplayer
paintComponent(Graphics) - Method in class battlehex.ui.main.TileComponent
pay(int) - Method in interface battlehex.model.map.IMoney
Credit the given amount.
pay(int) - Method in class battlehex.model.map.Money
Credit the given amount.
payIncome() - Method in interface battlehex.model.map.ITerritory
Add the income to the territory fundings.
payIncome() - Method in class battlehex.model.map.Territory
Add the income to the territory fundings.
place() - Method in class battlehex.controller.BaseState
Handle an entity placement event.
place() - Method in class battlehex.controller.Controller
Change state to an entity placement pending.
place() - Method in interface battlehex.controller.IState
Handle an entity placement event.
place() - Method in class battlehex.controller.PlacementPendingState
Handle an entity placement event.
place() - Method in class battlehex.controller.TerritorySelectedState
Handle an entity placement event.
place() - Method in interface battlehex.ui.main.IController
Change state to an entity placement pending.
populate(Iterator, Iterator, int) - Method in class battlehex.model.command.MapGenerator
Iterate over coordinates and create tiles for given players according to the number per player specified.
preferredLayoutSize(Container) - Method in class battlehex.ui.main.PassiveLayout

R

register(ISelection) - Method in class battlehex.controller.Controller
Register a selection view.
register(ISelection) - Method in interface battlehex.ui.main.IController
Register a selection view.
remove() - Method in class battlehex.model.player.CyclicIterator
removeLayoutComponent(Component) - Method in class battlehex.ui.main.PassiveLayout
reset() - Method in interface battlehex.model.map.IMoney
Reset the amounts to zero.
reset() - Method in class battlehex.model.map.Money
Reset the amounts to zero.
resize(int, int) - Method in class battlehex.ui.main.PassiveLayout
Change the layout size.

S

SubTerritoryIterator - class battlehex.model.map.SubTerritoryIterator.
Implements an iterator grouping a list of tiles into unconnected territories.
SubTerritoryIterator(Vector, ITile) - Constructor for class battlehex.model.map.SubTerritoryIterator
Create a sub-territory iterator.
Surrounding - class battlehex.model.map.Surrounding.
Implements the surrounding of a tile logics.
Surrounding(IGrid, Coordinate) - Constructor for class battlehex.model.map.Surrounding
Create the surrounding of a tile.
select(ITerritory) - Method in interface battlehex.controller.ITerritoryObserver
Notify about a selection event.
select(IGrid, ITerritory) - Method in interface battlehex.ui.main.ISelection
Notify about a selection event.
select(IGrid, ITerritory) - Method in class battlehex.ui.main.TerritoryDisplayer
Notify about a selection event.
select(IGrid, ITerritory) - Method in class battlehex.ui.main.TerritoryInfoDisplayer
Notify about a selection event.
setEntity(IEntity) - Method in interface battlehex.model.map.ITile
Change or remove the current entity located on the tile.
setEntity(IEntity) - Method in class battlehex.model.map.Tile
Change or remove the current entity located on the tile.
setTerritory(ITerritory) - Method in interface battlehex.model.map.ITile
Changes the tile territory.
setTerritory(ITerritory) - Method in class battlehex.model.map.Tile
Changes the tile territory.

The tile is first removed from its territory.


T

Territory - class battlehex.model.map.Territory.
Implements territory logics.
Territory(IPlayer, IMoney) - Constructor for class battlehex.model.map.Territory
Create a territory.
TerritoryDisplayer - class battlehex.ui.main.TerritoryDisplayer.
Handles the territory selection.
TerritoryDisplayer(IController, IContext, IHexagonBuilder) - Constructor for class battlehex.ui.main.TerritoryDisplayer
Create a territory displayer component.
TerritoryInfoDisplayer - class battlehex.ui.main.TerritoryInfoDisplayer.
Displays territory information.
TerritoryInfoDisplayer(IController, IContext) - Constructor for class battlehex.ui.main.TerritoryInfoDisplayer
Create a component displaying territory information.
TerritorySelectedState - class battlehex.controller.TerritorySelectedState.
 
TerritorySelectedState(IConsumer, ITerritoryObserver, ITerritory) - Constructor for class battlehex.controller.TerritorySelectedState
Create a state with a territory selected.
Tile - class battlehex.model.map.Tile.
Implements tile logics.
Tile(ISurrounding, ITerritory) - Constructor for class battlehex.model.map.Tile
Create a tile.
TileComponent - class battlehex.ui.main.TileComponent.
Displays a tile.
TileComponent(ITile, Polygon) - Constructor for class battlehex.ui.main.TileComponent
Create a tile component.
TileFactory - class battlehex.model.map.TileFactory.
A factory to create tiles.
TileFactory(IGrid) - Constructor for class battlehex.model.map.TileFactory
Create a tile factory.
Turn - class battlehex.model.Turn.
Encapsulates a turn counter.
Turn() - Constructor for class battlehex.model.Turn
Create a turn.
TurnUpdate - class battlehex.model.command.TurnUpdate.
Updates the current turn.
TurnUpdate(Turn) - Constructor for class battlehex.model.command.TurnUpdate
Create a complete update.
toString() - Method in class battlehex.model.Turn
toString() - Method in class battlehex.model.map.Surrounding
toString() - Method in class battlehex.model.map.Tile
toString() - Method in class battlehex.model.player.Player
transfer(ITile, ITerritory) - Method in interface battlehex.model.map.ITerritory
Transfer a tile to another territory.
transfer(IMoney) - Method in interface battlehex.model.map.ITerritory
Transferm the given money.
transfer(ITile, ITerritory) - Method in class battlehex.model.map.Territory
Transfer a tile to another territory.
transfer(IMoney) - Method in class battlehex.model.map.Territory
Transferm the given money.

U

update(IGrid) - Method in class battlehex.controller.Controller
Notify about new content.
update(IPlayer) - Method in class battlehex.controller.Controller
Notify about a new turn.
update(IGrid) - Method in interface battlehex.model.IGridObserver
Notify about new content.
update(IPlayer) - Method in interface battlehex.model.IPlayerObserver
Notify about a new turn.
update(Turn) - Method in interface battlehex.model.ITurnObserver
Notify about a new turn.
update(Turn) - Method in interface battlehex.model.command.IGameHandler
Notify the game turn changes.
update(IPlayer) - Method in interface battlehex.model.command.IGameHandler
Notify the playing player changes.
update(Turn) - Method in class battlehex.ui.main.ControlDisplay
Notify about a new turn.
update(IPlayer) - Method in class battlehex.ui.main.CurrentPlayerDisplayer
Notify about a new turn.
update(IGrid) - Method in class battlehex.ui.main.GridDisplayer
Notify about new content.
update(IGrid) - Method in class battlehex.ui.main.TerritoryDisplayer
Notify about new content.
update(IGrid) - Method in class battlehex.ui.main.TerritoryInfoDisplayer
Notify about new content.

V

View - class battlehex.ui.main.View.
Provides the application frame.
View(IController, JComponent, IClosable) - Constructor for class battlehex.ui.main.View
Create a view.
visit(int, int) - Method in interface battlehex.model.map.IMoneyVisitor
Retrieve money information.
visit(int, int, int, int) - Method in interface battlehex.model.map.ITerritoryVisitor
Retrieve territory info.

A B C D E G H I L M N P R S T U V

Copyright © 2004-2005 . All Rights Reserved.