Package megamek.server.victory
Class PlayerAgreedVictory
java.lang.Object
megamek.server.victory.PlayerAgreedVictory
- All Implemented Interfaces:
Serializable,VictoryCondition
This class represents the player-agreed /victory through chat commands
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckVictory(Game game, Map<String, Object> ctx) Tests if a victory (or draw) has occurred and returns a properly filled in VictoryResult.
-
Constructor Details
-
PlayerAgreedVictory
public PlayerAgreedVictory()
-
-
Method Details
-
checkVictory
Description copied from interface:VictoryConditionTests if a victory (or draw) has occurred and returns a properly filled in VictoryResult. Should returnVictoryResult.noResult()if this victory condition has not been met.- Specified by:
checkVictoryin interfaceVictoryCondition- Parameters:
game- The currentGamectx- The context to consider, seeVictoryCondition(currently unused)- Returns:
- The result of the victory condition test
-