Example #1
0
 /**
  *	Return all display objects that are within $radius
  *	of $location (so basically loading a bubble)
  */
 public function getDisplayObjects(Neuron_GameServer_Map_Area $area, $useFogOfWar = true)
 {
     $objects = array();
     $armies = Dolumar_Underworld_Mappers_ArmyMapper::getFromArea($this->mission, $area);
     foreach ($armies as $v) {
         if (!$useFogOfWar || $this->getExploreStatus($v->getLocation()) == Dolumar_Underworld_Map_FogOfWar::VISIBLE) {
             $objects[] = $v;
         }
     }
     return $objects;
 }