Example #1
0
		private static void CreateDoor(int x, int y, int z)
		{
			ArrayList removelist = new ArrayList();

			for (int i = 0; i < 2; i++)
			{
				IPooledEnumerable ipe = Map.Malas.GetItemsInRange(new Point3D(x, y + i, z), 0);

				foreach (Item item in ipe)
					if (item is DarkWoodDoor)
						removelist.Add(item);                
			}

			foreach (Item item in removelist)
				item.Delete();

			DarkWoodDoor door1 = new DarkWoodDoor(DoorFacing.NorthCCW);
			DarkWoodDoor door2 = new DarkWoodDoor(DoorFacing.SouthCW);

			door1.Link = door2;
			door2.Link = door1;

			door1.MoveToWorld(new Point3D(x, y, z), Map.Malas);
			door2.MoveToWorld(new Point3D(x, y + 1, z), Map.Malas);
		}
Example #2
0
        public static BaseDoor AddDoor(int x, int y, int z, DoorFacing facing)
        {
            int doorZ = z;
            int doorTop = doorZ + 20;

            if (!m_Map.CanFit(x, y, z, 16, false, false))
                return null;

            if (y == 1743 && x >= 1343 && x <= 1344)
                return null;

            if (y == 1679 && x >= 1392 && x <= 1393)
                return null;

            if (x == 1320 && y >= 1618 && y <= 1640)
                return null;

            if (x == 1383 && y >= 1642 && y <= 1643)
                return null;

            BaseDoor door = new DarkWoodDoor(facing);
			WeakEntityCollection.Add("door", door);
            door.MoveToWorld(new Point3D(x, y, z), m_Map);

            ++m_Count;

            return door;
        }
Example #3
0
		public static BaseDoor AddDoor( int x, int y, int z, DoorFacing facing )
		{
			int doorZ = z;
			int doorTop = doorZ + 20;

            if (!m_Map.CanFit(x, y, z, 16, CanFitFlags.requireSurface))
				return null;

			if ( y == 1743 && x >= 1343 && x <= 1344 )
				return null;

			if ( y == 1679 && x >= 1392 && x <= 1393 )
				return null;

			if ( x == 1320 && y >= 1618 && y <= 1640 )
				return null;

			if ( x == 1383 && y >= 1642 && y <= 1643 )
				return null;

			BaseDoor door = new DarkWoodDoor( facing );
			door.MoveToWorld( new Point3D( x, y, z ), m_Map );

			++m_Count;

			return door;
		}
Example #4
0
        public static BaseDoor AddDoor( int x, int y, int z, DoorFacing facing )
        {
            //int doorZ = z;
            //int doorTop = doorZ + 20;

            if ( !m_Map.CanFit( x, y, z, 16, false, false ) )
            {
                return null;
            }

            if ( y == 1743 && x >= 1343 && x <= 1344 )
            {
                return null;
            }

            if ( y == 1679 && x >= 1392 && x <= 1393 )
            {
                return null;
            }

            if ( x == 1320 && y >= 1618 && y <= 1640 )
            {
                return null;
            }

            if ( x == 1383 && y >= 1642 && y <= 1643 )
            {
                return null;
            }

            BaseDoor door = new DarkWoodDoor( facing );
            door.MoveToWorld( new Point3D( x, y, z ), m_Map );

            ++m_Count;

            return door;
        }