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

View file

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