source: 2014/koodauskerho/38/JuhoJ/Teksti seikkailu/Teksti seikkailu/Rooms.cs @ 5768

Revision 5768, 514 bytes checked in by jotapoti, 5 years ago (diff)

tekstiseikkailun alku

Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace Teksti_seikkailu
7{
8   public class Rooms
9    {
10       private List<Room> rooms;
11
12       public Rooms(params Room[] rooms)
13       {
14           this.rooms = new List<Room>(rooms);
15       }
16       
17       public Room addroom(string name, string text)
18       {
19            Room room = new Room(name, text);
20            this.rooms.Add(room);
21            return room;
22
23        }
24    }
25 
26   
27}
Note: See TracBrowser for help on using the repository browser.