getName() public method

public getName ( ) : string
return string
Beispiel #1
0
        /** 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);
            }
        }
Beispiel #2
0
		/** 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 );
			}
		}