Beispiel #1
0
 /** Stops movement of entities to simulate turn-based action. */
 public void blockMovement() {
   for (EntityStats entity : battlers) {
     entity.getEntity().setJumping(false);
     entity.getEntity().moveStrafing = 0.0F;
     entity.getEntity().moveForward = 0.0F;
   }
 }
Beispiel #2
0
 /**
  * {@inheritDoc}
  *
  * @see HibernateStats#getEntityStats()
  */
 public TabularData getEntityStats() {
   List<CompositeData> result = new ArrayList<CompositeData>();
   Statistics statistics = getStatistics();
   for (String entity : statistics.getEntityNames()) {
     EntityStats entityStats = new EntityStats(entity, statistics.getEntityStatistics(entity));
     result.add(entityStats.toCompositeData());
   }
   TabularData td = EntityStats.newTabularDataInstance();
   td.putAll(result.toArray(new CompositeData[result.size()]));
   return td;
 }
Beispiel #3
0
 @Override
 public int compare(EntityStats o1, EntityStats o2) {
   if (o1.getSPD() >= o2.getSPD()) return 1;
   else return 0;
 }