Inheritance: ProjectIndexedDataType
Ejemplo n.º 1
0
 public override void GetRoomPosition(Room room, out int x, out int y)
 {
     int f;
     GetRoomPosition(room, out x, out y, out f);
 }
Ejemplo n.º 2
0
        public void SetRoom(Room r)
        {
            var handler = new Room.RoomModifiedHandler(OnRoomModified);
            if (room != null)
                room.RoomModifiedEvent -= handler;
            r.RoomModifiedEvent += handler;

            room = r;
            Width = room.Width;
            Height = room.Height;
            QueueDraw();
        }
Ejemplo n.º 3
0
        public override void GetRoomPosition(Room room, out int x, out int y, out int floor)
        {
            x = -1;
            y = -1;
            floor = -1;

            for (int f=0;f<NumFloors;f++) {
                for (int j=0;j<MapHeight;j++) {
                    for (int i=0;i<MapWidth;i++) {
                        if (GetRoom(i,j,f) == room) {
                            x = i;
                            y = j;
                            floor = f;
                            return;
                        }
                    }
                }
            }
        }
Ejemplo n.º 4
0
 public abstract void GetRoomPosition(Room room, out int x, out int y, out int floor);