Package fr.formiko.formiko
Class Graine
java.lang.Object
fr.formiko.formiko.ObjetAId
fr.formiko.formiko.ObjetSurCarteAId
fr.formiko.formiko.Graine
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private byte
private boolean
private byte
private byte
Fields inherited from class fr.formiko.formiko.ObjetSurCarteAId
ccase, direction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return true if it can be open by given Creature.void
casser()
boolean
Standard equals function.int
byte
boolean
byte
byte
getType()
boolean
isOpen()
void
mourrir()
void
Move the Graine from a case to an other.void
setGivenFood
(int x) void
setHardness
(byte x) void
setHardness
(int x) void
setOpen
(boolean b) void
setOuverte
(boolean b) toString()
Return a string that describe this.void
tour()
Methods inherited from class fr.formiko.formiko.ObjetSurCarteAId
getCase, getCCase, getDirAllea, getDirection, setCc, setCCase, setDirection
-
Field Details
-
givenFood
private int givenFood -
hardness
private byte hardness -
ouverte
private boolean ouverte -
type
private byte type -
tempsAvantDecomposition
private byte tempsAvantDecomposition
-
-
Constructor Details
-
Graine
-
Graine
-
Graine
public Graine()
-
-
Method Details
-
getGivenFood
public int getGivenFood() -
setGivenFood
public void setGivenFood(int x) -
getHardness
public byte getHardness() -
setHardness
public void setHardness(byte x) -
setHardness
public void setHardness(int x) -
getOuverte
public boolean getOuverte() -
isOpen
public boolean isOpen() -
setOpen
public void setOpen(boolean b) -
setOuverte
public void setOuverte(boolean b) -
casser
public void casser() -
canBeOpenBy
Return true if it can be open by given Creature.
o -
setCCase
Move the Graine from a case to an other.
o It is used by Deplacement interfaces.
It wil try to remove from old CCase and add to new CCase.- Overrides:
setCCase
in classObjetSurCarteAId
-
getType
public byte getType() -
getTimeAvantDecomposition
public byte getTimeAvantDecomposition() -
toString
Description copied from class:ObjetAId
Return a string that describe this. -
equals
Standard equals function. Null & other class type proof. -
mourrir
public void mourrir() -
tour
public void tour()
-