Package net.sf.colossus.gui
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 int
private static final String
static final int
private static final String
static final int
private static final String
static final int
private static final String
static final int
private static final String
static final int
private static final String
static final int
private static final String
static final int
private static final String
static final int
private static final String
static final int
private static final String
static final int
private static final String
static final int
private static final String
private int
private static String[]
static final int
private static final String
private int
private int
private String
private List
<RevealedCreature> private final Legion
private final Legion
private static final Logger
private String
private String
private String
private int
static final int
private int
private JPanel
private final Player
private RevealedCreature
private Player
private int
private final int
private 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 TypeMethodDescriptionvoid
private void
private void
private void
private void
int
int
int
static String
getEventTypeText
(int type) int
Note 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 Chit
int
getTurn()
private JPanel
private void
boolean
removeReinforcedCreature
(int turnNumber, String name) boolean
removeSummonedCreature
(int turnNumber, String name) void
void
setCreatureDied
(CreatureType type, int newHeight) void
setEventInfo
(String info) void
setEventType
(int eventType) void
setRealPlayer
(Player realPlayer) void
setUndone
(boolean undone) toPanel()
toString()
void
updateKnownCreatures
(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
-