Beispiel #1
0
 public static void printEntityDebugInfo(IEntity e, String name) {
   Log.d(
       "Riska",
       ((name != null) ? name : "Entity")
           + ": at ("
           + e.getX()
           + ", "
           + e.getY()
           + ") sized ("
           + e.getWidth()
           + ", "
           + e.getHeight()
           + ")");
 }
 @Override
 protected void onChangeValues(
     final float pSecondsElapsed, final IEntity pEntity, final float pX, final float pY) {
   pEntity.setPosition(pEntity.getX() + pX, pEntity.getY() + pY);
 }
Beispiel #3
0
 public static float topGlobal(IEntity e) {
   return e.getY() + 0.5f * e.getHeight();
 }
Beispiel #4
0
 public static float bottomGlobal(IEntity e) {
   return e.getY() - 0.5f * e.getHeight();
 }
Beispiel #5
0
 public static float getLowerBoundsY(IEntity e) {
   return getLowerBoundsY(e.getY(), e.getHeight());
 }