示例#1
0
        public HeroQuestGenerator()
        {
            HeroQuestRoom LargeRoom = new HeroQuestRoom();
            LargeRoom.GridSize = new Size(10, 5);
            Rooms.Add(LargeRoom);

            HeroQuestRoom SmallRoom = new HeroQuestRoom();
            SmallRoom.GridSize = new Size(5, 5);
            Rooms.Add(SmallRoom);

            HeroQuestPassage LongPassage = new HeroQuestPassage();
            LongPassage.GridSize = new Size(2, 10);
            Passages.Add(LongPassage);

            HeroQuestPassage ShortPassage = new HeroQuestPassage();
            ShortPassage.GridSize = new Size(2, 5);
            Passages.Add(ShortPassage);

            HeroQuestPassage DeadEnd = new HeroQuestPassage();
            DeadEnd.GridSize = new Size(2, 5);
            DeadEnd.DeadEnd = true;
            Passages.Add(DeadEnd);

            HeroQuestPassage Stairs = new HeroQuestPassage();
            Stairs.GridSize = new Size(2, 2);
            Stairs.DeadEnd = true;
            Stairs.Stairs = true;
            Passages.Add(Stairs);

            HeroQuestConnector Corner = new HeroQuestConnector();
            Corner.Corner = true;
            Connectors.Add(Corner);

            HeroQuestConnector T = new HeroQuestConnector();
            T.Corner = false;
            Connectors.Add(T);
        }
示例#2
0
 protected void ProcessPassageway( HeroQuestPassage passage )
 {
 }
示例#3
0
        public Map Generate()
        {
            Map map = new Map();

            HeroQuestPassage Stairs = new HeroQuestPassage();
            Stairs.GridSize = new Size(2, 4);
            Stairs.DeadEnd = true;
            Stairs.Stairs = true;
            Stairs.Start = true;

            Stairs.Origin = new Point(0, 0);

            TempMap.Add(Stairs);

            HeroQuestPassage StartHall = new HeroQuestPassage();
            StartHall.GridSize = new Size(2, 10);

               // LinkNode l = new LinkNode()
               // StartHall.Links;
            TempMap.Add(StartHall);

            return map;
        }