Package fr.formiko.views.gui2d
Class FPanelInfoCreature.FPanelInfoCreatureBuilder
java.lang.Object
fr.formiko.views.gui2d.FPanelInfo.FPanelInfoBuilder
fr.formiko.views.gui2d.FPanelInfoCreature.FPanelInfoCreatureBuilder
- Enclosing class:
FPanelInfoCreature
Standard Builder for this.
- Author:
- Hydrolien
-
Field Summary
FieldsFields inherited from class fr.formiko.views.gui2d.FPanelInfo.FPanelInfoBuilder
allowPanelsOnSameLine, lp, x, yByElement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionStandard Builder for this.private voidAdd the icons.private voidAdd the icons then the progress bar with there icon.private voidaddCreatureProgressBar(int state, int value, int maxValue, String iconName) Add a progress bar.private voidAdd the progress bars.build()Build including the tranfomation of Creature to Panel.Methods inherited from class fr.formiko.views.gui2d.FPanelInfo.FPanelInfoBuilder
add, setAllowPanelsOnSameLine, setX, setYByElement
-
Field Details
-
c
-
-
Constructor Details
-
FPanelInfoCreatureBuilder
FPanelInfoCreatureBuilder()
-
-
Method Details
-
addCreature
Standard Builder for this. -
build
Build including the tranfomation of Creature to Panel.
Creature are represent as icon & FProgressBar.- Overrides:
buildin classFPanelInfo.FPanelInfoBuilder
-
addCreatureInfo
private void addCreatureInfo()Add the icons then the progress bar with there icon. -
addCreatureIcons
private void addCreatureIcons()Add the icons.
Icon are : the creature itself, the icon draw on the map if creature is not the playing ant, seed if there is any.
Specie name is also print. -
addCreatureProgressBars
private void addCreatureProgressBars()Add the progress bars. -
addCreatureProgressBar
Add a progress bar.- Parameters:
state- state that define color of the barvalue- curent value of the barmaxValue- max value of the bar
-