14 lines
339 B
Java
14 lines
339 B
Java
package com.company.creature;
|
|
|
|
import java.util.Date;
|
|
|
|
public abstract class Creature implements Bornable, Dieable{
|
|
protected Date DayOfBirth;
|
|
protected Date DayOfDie;
|
|
public abstract void move (int directionX, int directionY, int directionZ);
|
|
|
|
public Date getDayOfBirth() {
|
|
return DayOfBirth;
|
|
}
|
|
}
|