示例#1
0
 /**
  * Will Destroy this Object call if you are going to remove this from from the array
  */
 public void destroy()
 {
     if (subject != null)
     {
         storedStateChangeObject.add(subject.scare());
         subject = null;
     }
 }    /**
示例#2
0
 /**
  * Will attempt to Remove an enemy at the given location
  * Note Does not check if hostSet is set
  * @param targetRow
  * @param targetCollumn
  */
 private void killEnemy(int targetRow, int targetCollumn)
 {
     if (hostSet != null)
     {
         BaseEnemy target = hostSet.getEnemyAt(targetRow, targetCollumn);
         if (target != null)
         {
             target.scare();
         }
     }
 }