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 void
Add the icons.private void
Add the icons then the progress bar with there icon.private void
addCreatureProgressBar
(int state, int value, int maxValue, String iconName) Add a progress bar.private void
Add 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:
build
in 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
-