fix: some javadoc
This commit is contained in:
parent
ec764c56fb
commit
fd222f1dc7
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue