Example #1
0
 /**
  * *********************************************************************** Removes the indicated
  * Effect from this MatrixEffect.
  *
  * @param effect The Effect to remove.
  *     ***********************************************************************
  */
 public void removeEffect(Effect effect) {
   effects.remove(effect);
 }
Example #2
0
 /**
  * *********************************************************************** Affects the indicated
  * MatrixEntity.
  *
  * @param entity The MatrixEntity to affect.
  *     ***********************************************************************
  */
 protected void affect(MatrixEntity entity) {
   for (Effect effect : effects) effect.affect(this, entity);
   effects.unlock();
 }
Example #3
0
 /**
  * *********************************************************************** Adds the indicated
  * Effect to this MatrixEffect.
  *
  * @param effect The Effect to add.
  *     ***********************************************************************
  */
 public void addEffect(Effect effect) {
   effects.add(effect);
 }