public class BlockadeState extends Object
| Modifier and Type | Field and Description |
|---|---|
private Map<ICity,IBlockade> |
blockadedCity |
| Constructor and Description |
|---|
BlockadeState() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBlockade(ICity city,
IBlockade blockade)
Add a blockade for the city.
|
Set<Map.Entry<ICity,IBlockade>> |
entrySet() |
void |
finishBlockade(ICity city)
Finish the blockade.
|
Optional<IBlockade> |
getBlockade(ICity city)
Retrieve the blockade for the city.
|
public void addBlockade(ICity city, IBlockade blockade)
city - blockade - public Optional<IBlockade> getBlockade(ICity city)
city - for which the blockade objecd is to be retrieved.public void finishBlockade(ICity city)
city - Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.