Exemple #1
0
 public WallDefenceSystem(CastleForm form)
 {
     if (form == CastleForm.rectangle)
     {
         wall_count  = 4;
         walls       = new Wall[4];
         walls[0]    = new Wall(100, WorldDirection.north, BuildMaterial.stone, 30);
         walls[1]    = new Wall(100, WorldDirection.east, BuildMaterial.stone, 30);
         walls[2]    = new Wall(100, WorldDirection.west, BuildMaterial.stone, 30);
         walls[3]    = new Wall(100, WorldDirection.south, BuildMaterial.stone, 30);
         tower_count = 4;
         towers      = new Tower[4];
         towers[0]   = new Tower(100, WorldDirection.north_east, BuildMaterial.stone, 50);
         towers[1]   = new Tower(100, WorldDirection.north_west, BuildMaterial.stone, 50);
         towers[2]   = new Tower(100, WorldDirection.south_east, BuildMaterial.stone, 50);
         towers[3]   = new Tower(100, WorldDirection.south_west, BuildMaterial.stone, 50);
     }
     else
     {
         wall_count  = 0;
         walls       = null;
         tower_count = 0;
         towers      = null;
     }
     moat = new Moat();
 }
 public GateDefenceSystem(CastleForm form, WorldDirection direct)
 {
     moat         = new Moat(form);
     gate         = new Gate(direct, BuildMaterial.wood, false);
     isBridgeDown = false;
     isTarTrapSet = false;
 }
 public GateDefenceSystem()
 {
     moat         = new Moat();
     gate         = new Gate();
     isBridgeDown = false;
     isTarTrapSet = false;
 }
Exemple #4
0
 public WallDefenceSystem()
 {
     wall_count  = 0;
     walls       = null;
     tower_count = 0;
     towers      = null;
     moat        = new Moat();
 }