Package megamek.server.victory

Interface Summary
Victory interface for classes judging whether a victory occurred or not. these classes may not modify game state.
Victory.Result result class which can be queried for winner and if victory occurred victory might be true and winner "None" if the players have drawn winner might be NONE and team set to winning team.
VictoryFactory interface for VictoryFactories, ie. classes which construct Victory objects or Victory object hierarchies based on a given string.
 

Class Summary
AbstractBVVictory abstract baseclass for bv-checking victory implementations
BVDestroyedVictory implementation which will match when a certain percentage of all enemy BV is destroyed.
BVRatioVictory implements bv-ratio victory checking ratio is defined as friendlybv/enemybv>(bvratiopercent/100)=>win so this comparison is valid for 3 team combat , but you must drop ALL enemies combined to below given ratio.
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
EnemyCmdrDestroyedVictory implements "enemy commander destroyed"
ForceVictory implementation of player-agreed victory
LastManStandingVictory implementation of "last player/team standing"
NoodleVictory detailed spaghetti from the old victory code this assumes game options do not change during game (atleast regarding victory conditions)
SimpleDrawResult quick implementation of a Victory.Result to say "nobody won ..its a draw"
SimpleNoResult quick implementation of a Victory.Result to say "nobody won yet"
SimpleResult quick implementation of a Victory.Result
SpaghettiVictory This is the original implementation of victory moved under the new infrastructure
SpaghettiVictoryFactory  
SummingThresholdVictory a summing victory condition will first sum all given victory conditions, if any of them are in victory state AND someone is over the threshold, then will return victory , otherwise just the scores the scores will be an average of the given victory scores.
VictoryResult quick implementation of a Victory.Result stores player scores and a flag if game-ending victory is achieved or not