fix: some javadoc

This commit is contained in:
Laureηt 2021-04-13 19:19:05 +02:00
parent ec764c56fb
commit fd222f1dc7
2 changed files with 11 additions and 8 deletions

View file

@ -10,6 +10,9 @@ public abstract class BaseActor extends Actor {
static private BitmapFont fontDebug = new BitmapFont();
/**
* @return debug String displayed in {@link #draw()}
*/
protected abstract String getInfo();
protected float angle; // encapsulate ?
@ -17,7 +20,7 @@ public abstract class BaseActor extends Actor {
@Override
public void draw(Batch batch, float parentAlpha) {
super.draw(batch, parentAlpha);
fontDebug.draw(batch, getInfo(), getX(), getY());
if (getDebug()) fontDebug.draw(batch, getInfo(), getX(), getY());
}
@Override

View file

@ -57,13 +57,6 @@ public class Player extends BaseActor {
bow.act(dt);
}
/**
* @return the Player's home Planet.
*/
Planet getHome() {
return this.home;
}
@Override
protected String getInfo() {
return
@ -71,4 +64,11 @@ public class Player extends BaseActor {
;
}
/**
* @return the Player's home Planet.
*/
Planet getHome() {
return this.home;
}
}