/** Indicates whether or not this zone requires zone-specific data for
* each scene node
*/
/* Add a portal to the zone
*/
public override void AddPortal(Portal newPortal)
{
if (null != newPortal)
{
// make sure portal is unique (at least in this zone)
if (mPortals.Contains(newPortal))
{
throw new AxiomException("A portal with the name " + newPortal.getName() +
"already exists. DefaultZone._addPortal");
}
// add portal to portals list
mPortals.Add(newPortal);
// tell the portal which zone it's currently in
newPortal.setCurrentHomeZone(this);
}
}