geforkt von Mirrors/Paper
[Bleeding] Add Animals: setAgeLock(bool), bool getAgeLock, void setBaby, void setAdult, void setBreed(bool), bool canBreed and bool isAdult.
By: Erik Broes <erikbroes@grum.nl>
Dieser Commit ist enthalten in:
Ursprung
d4b3279707
Commit
fff2c4278c
@ -17,4 +17,49 @@ public interface Animals extends Creature {
|
|||||||
* @param age New age
|
* @param age New age
|
||||||
*/
|
*/
|
||||||
public void setAge(int age);
|
public void setAge(int age);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Lock the age of the animal, setting this will prevent the animal from maturing or getting ready for mating.
|
||||||
|
*
|
||||||
|
* @param lock new lock
|
||||||
|
*/
|
||||||
|
public void setAgeLock(boolean lock);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the current agelock.
|
||||||
|
*
|
||||||
|
* @return the current agelock
|
||||||
|
*/
|
||||||
|
public boolean getAgeLock();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the age of the animal to a baby
|
||||||
|
*/
|
||||||
|
public void setBaby();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the age of the animal to an adult
|
||||||
|
*/
|
||||||
|
public void setAdult();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if the animal is an adult.
|
||||||
|
*
|
||||||
|
* @return return true if the animal is an adult
|
||||||
|
*/
|
||||||
|
public boolean isAdult();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the ability to breed of the animal.
|
||||||
|
*
|
||||||
|
* @return the ability to breed of the animal
|
||||||
|
*/
|
||||||
|
public boolean canBreed();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set breedability of the animal, if the animal is a baby and set to breed it will instantly grow up.
|
||||||
|
*
|
||||||
|
* @param breed breedability of the animal
|
||||||
|
*/
|
||||||
|
public void setBreed(boolean breed);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren