Example #1
0
 public Sector(VirtualWorld world, string name, int towers)
 {
     Name         = name;
     VirtualWorld = world;
     for (int i = 1; i <= towers; i++)
     {
         AddTower(i);
     }
 }
Example #2
0
        public VirtualWorld AddVirtualWorld(VirtualWorld virtualWorld)
        {
            if (GetVirtualWorld(virtualWorld.Name) == null)
            {
                VirtualWorlds.Add(virtualWorld);
                return virtualWorld;
            }

            return null;
        }
Example #3
0
 public VirtualWorld AddVirtualWorld(string virtualWorld)
 {
     var newWorld = new VirtualWorld(virtualWorld);
     return AddVirtualWorld(newWorld);
 }