Package net.sf.colossus.variant
A package containing classes and interfaces modeling a Colossus variant.
Currently this package has not yet been fully established. It is meant to hold all code relevant to model a variant including all the boards and creature types. The central access is through the Variant class.
This package is meant to be used both by server and client code, with no dependencies into either of them. Note that server and client should not share instances, since that would allow information to leak from the server into the clients. The server and each client should have their own instances of the classes in this package containing the information as known to each of them.
-
Interface Summary Interface Description AllCreatureType All CreatureType existing in a VariantHazardConstants This holds constants used in Hazard Terrain and Hazard HexsideICustomRecruitBase IHintOracle Interface for an Oracle used for AI Hints.IOracleLegion A legion, given as parameter to VariantHintOracleIRecruiting Interface for recruiting.IVariant Defined for which methods we currently abuse the Client to forward the question about variant specific information to static methods in TerrainRecruitLoader.IVariantHint Interface for the use of AI Hints.IVariantInitializer Access methods how information that is loaded e.g.IVariantKnower Some object from which Game can ask for the current variant, instead of the static VariantSupport.getCurrentVariant() way. -
Class Summary Class Description BattleHex Class BattleHex holds game state for battle hex.CreatureType A type of creature in a variant.CreatureTypeTitan Class CreatureTitan represent the CONSTANT information about a Titan (the game) Titan (the creature).HazardHexside This is a typesafe enumeration of all hazard Hexsides, i.e.Hazards Superclass for BattleMap hazards: Terrain & Hexsides,Hazards.CombatEffect The effect on a combat category (strike|rangestrike, defense|attack), including the effect (what), the scope (who), and the adjustement (how much).HazardTerrain This is a typesafe enumeration of all hazard terrains, i.e.Hex Class Hex describes one general hex.MasterBoard The master board as part of a variant.MasterBoardTerrain A master board terrain.MasterHex Class MasterHex describes one Masterboard hex, without GUI info.RecruitingSubTree The recruiting sub-tree in a terrain (or several terrains)RecruitingSubTree.RecruiterAndRecruit Variant Hub for all variant-specific information.Variant.AcquirableData Used internally to record the Acquirable name, points needed for recruiting, and the list of terrains in which the Acquirable dwells. -
Enum Summary Enum Description HazardConstants.EffectOnMovement Movement ConstantsHazardConstants.EffectOnStrike Strike/RangeStrike ConstantsHazardConstants.RangeStrikeSpecialEffect RANGESTRIKEFREE = "No effect on RangeStrike"; RANGESTRIKEBLOCKED = "Blocks RangeStrike"; RANGESTRIKEOCCUPIED = "Blocks RangeStrike unless Occupied"; RANGESTRIKEWALL = "Blocks RangeStrike unless Occupied - 1 Skill"; RANGESTRIKESKILLPENALTY = "Non-Native RangeStriker loses skill for each";HazardConstants.ScopeOfEffectOnStrike Scope Constants - All - is everyone Natives means Natives vs anyone Patriots means Natives vs Foreigners Foreigners are Non-Natives vs anyone Imperials means Foreigners vs NativesHazardConstants.SpecialEffect Special effects.IVariantHint.AIStyle The style of play the AI should prefer.