Class RevealEvent
java.lang.Object
net.sf.colossus.gui.RevealEvent
Contains info about one event that revealed some interesting information,
stored in EventViewer.
- Author:
- Clemens Katzer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate static final Stringstatic final intprivate static final Stringstatic final intprivate static final Stringstatic final intprivate static final Stringstatic final intprivate static final Stringstatic final intprivate static final Stringstatic final intprivate static final Stringstatic final intprivate static final Stringstatic final intprivate static final Stringstatic final intprivate static final Stringstatic final intprivate static final Stringstatic final intprivate static final Stringprivate intprivate static String[]static final intprivate static final Stringprivate intprivate intprivate Stringprivate List<RevealedCreature> private final Legionprivate final Legionprivate static final Loggerprivate Stringprivate Stringprivate Stringprivate intstatic final intprivate intprivate JPanelprivate final Playerprivate RevealedCreatureprivate Playerprivate intprivate final intprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionRevealEvent(int turnNumber, Player player, int eventType) RevealEvent(int turnNumber, Player player, int eventType, int oldRoll, int newRoll) RevealEvent(int turnNumber, Player player, int eventType, Legion legion1, List<RevealedCreature> knownCreatures, Legion legion2) TODO replace marker/height combos with Legion objects --Done. -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidprivate voidprivate voidprivate voidintintintstatic StringgetEventTypeText(int type) intNote that RevealEvents use (currently?) everywhere the long marker id in order to be able to handle re-colored captured markers properly.Note that RevealEvents use (currently?) everywhere the long marker id in order to be able to handle re-colored captured markers properly.private ChitintgetTurn()private JPanelprivate voidbooleanremoveReinforcedCreature(int turnNumber, String name) booleanremoveSummonedCreature(int turnNumber, String name) voidvoidsetCreatureDied(CreatureType type, int newHeight) voidsetEventInfo(String info) voidsetEventType(int eventType) voidsetRealPlayer(Player realPlayer) voidsetUndone(boolean undone) toPanel()toString()voidupdateKnownCreatures(List<RevealedCreature> revealedCreatures) boolean
-
Field Details
-
LOGGER
-
turnNumber
private final int turnNumber -
player
-
eventType
private int eventType -
markerId
-
height
private int height -
knownCreatures
-
readyToDie
-
markerId2
-
height2
private int height2 -
legion1
-
legion2
-
oldRoll
private int oldRoll -
newRoll
private int newRoll -
mulliganTitanBaseName
-
undone
private boolean undone -
scale
private int scale -
p
-
info
-
realPlayer
-
eventSplit
public static final int eventSplit- See Also:
-
eventRecruit
public static final int eventRecruit- See Also:
-
eventSummon
public static final int eventSummon- See Also:
-
eventTeleport
public static final int eventTeleport- See Also:
-
eventAcquire
public static final int eventAcquire- See Also:
-
eventWon
public static final int eventWon- See Also:
-
eventLost
public static final int eventLost- See Also:
-
eventTurnChange
public static final int eventTurnChange- See Also:
-
eventPlayerChange
public static final int eventPlayerChange- See Also:
-
eventMulligan
public static final int eventMulligan- See Also:
-
eventMoveRoll
public static final int eventMoveRoll- See Also:
-
eventReinforce
public static final int eventReinforce- See Also:
-
eventBattle
public static final int eventBattle- See Also:
-
NUMBEROFEVENTS
public static final int NUMBEROFEVENTS- See Also:
-
eventSplitText
- See Also:
-
eventRecruitText
- See Also:
-
eventSummonText
- See Also:
-
eventTeleportText
- See Also:
-
eventAcquireText
- See Also:
-
eventWonText
- See Also:
-
eventLostText
- See Also:
-
eventTurnChangeText
- See Also:
-
eventPlayerChangeText
- See Also:
-
eventMulliganText
- See Also:
-
eventMoveRollText
- See Also:
-
eventBattleText
- See Also:
-
eventReinforceText
- See Also:
-
eventTypeToString
-
-
Constructor Details
-
RevealEvent
public RevealEvent(int turnNumber, Player player, int eventType, Legion legion1, List<RevealedCreature> knownCreatures, Legion legion2) TODO replace marker/height combos with Legion objects --Done. NOTE Can replace only for input, need to store marker and height from here on, because Legion content will change but we want to record the original state!- Parameters:
legion1- TODOlegion2- TODO
-
RevealEvent
-
RevealEvent
-
-
Method Details
-
makeCreaturesTitanChangeSafe
-
setEventType
public void setEventType(int eventType) -
setEventInfo
-
setRealPlayer
-
setUndone
public void setUndone(boolean undone) -
wasUndone
public boolean wasUndone() -
setAllDead
public void setAllDead() -
getAliveCount
public int getAliveCount() -
getDeadCount
public int getDeadCount() -
addCreature
-
updateKnownCreatures
-
setCreatureDied
-
removeSummonedCreature
-
removeReinforcedCreature
-
getEventType
public int getEventType() -
getEventTypeText
-
getEventTypeText
-
getLegion1
-
getLegion2
-
getLongMarkerId
Note that RevealEvents use (currently?) everywhere the long marker id in order to be able to handle re-colored captured markers properly.- Returns:
- The markerId of first involved legion.
-
getLongMarkerId2
Note that RevealEvents use (currently?) everywhere the long marker id in order to be able to handle re-colored captured markers properly.- Returns:
- The markerId of 2nd involved legion.
-
getHeight
public int getHeight() -
getTurn
public int getTurn() -
getPlayer
-
toString
-
addLabel
-
addMarker
-
getSolidMarker
-
addCreatureWithInfoToPanel
-
addCreatureToPanel
-
infoEvent
-
toPanel
-