Package fr.formiko.formiko.interfaces
Class TourFourmiNonIa
java.lang.Object
fr.formiko.formiko.interfaces.TourFourmi
fr.formiko.formiko.interfaces.TourFourmiNonIa
- All Implemented Interfaces:
Tour
,Serializable
Ant implementation for real player.
Allow an ant to play a turn
Allow an ant to play a turn
- Author:
- Hydrolien
- See Also:
-
Field Summary
Fields inherited from class fr.formiko.formiko.interfaces.TourFourmi
f
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Do turn actions that can be done without action.void
End a turn as an Ant.private String
faire
(int actionId) Do a turn action.byte
Return user choice to do an ant action.byte
getChoixBouton
(boolean evenIfNoAction) Return user choice to do an ant action.private int[]
Return the ids of the aviable actions.void
tour()
Do turn actions for an ant.Methods inherited from class fr.formiko.formiko.interfaces.TourFourmi
aNetoyer, aNourrir, backHome, backHomeAndShareFood, cleanItself, cleanOther, endTurn, feedOther, setF, unTour
-
Constructor Details
-
TourFourmiNonIa
public TourFourmiNonIa()
-
-
Method Details
-
tour
public void tour()Do turn actions for an ant. There is no order to do actions because player choose it.- Overrides:
tour
in classTourFourmi
-
endTurn
Description copied from class:TourFourmi
End a turn as an Ant.
If turn have already be end on this turn, it will do nothing.- Specified by:
endTurn
in interfaceTour
- Overrides:
endTurn
in classTourFourmi
- Parameters:
c
- The Creature that need to end a turn.
-
allowToDisableAutoMode
public void allowToDisableAutoMode()Do turn actions that can be done without action. There is no order to do actions because player choose it. -
getChoixBouton
public byte getChoixBouton(boolean evenIfNoAction) Return user choice to do an ant action. There is no order to do actions because player choose it.- Parameters:
evenIfNoAction
- Don't return -1 just because ant have no action to do
-
getChoixBouton
public byte getChoixBouton()Return user choice to do an ant action. There is no order to do actions because player choose it. -
getTActionFourmi
private int[] getTActionFourmi()Return the ids of the aviable actions. -
faire
Do a turn action.- Parameters:
actionId
- the id of the action to do
-