|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.server.victory.CheckVictory
public class CheckVictory
implementation of a filter which will wait until the game.gameTimerIsExpired() is true or option "check_victory" is set before returning whatever the given victory returns. otherwise returns SimpleNoResult
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface megamek.server.victory.Victory |
|---|
Victory.Result |
| Field Summary | |
|---|---|
protected Victory |
v
|
| Constructor Summary | |
|---|---|
CheckVictory(Victory v)
|
|
| Method Summary | |
|---|---|
Victory.Result |
victory(IGame game,
java.util.HashMap<java.lang.String,java.lang.Object> ctx)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Victory v
| Constructor Detail |
|---|
public CheckVictory(Victory v)
| Method Detail |
|---|
public Victory.Result victory(IGame game,
java.util.HashMap<java.lang.String,java.lang.Object> ctx)
victory in interface Victorygame - - the game (state) we are playingctx - - a map Strings to simple serializable objects (preferably
Integers , Strings ,Doubles etc) which are used to store state
between executions if such feature is absolutely required.. as
a key you should use something atleast class- specific to
limit namespace collisions
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||