Пример #1
0
    private EnemyIslandObject GenerateEnemyShip(int lvl)
    {
        ItemObject      boon       = new ItemObject();           // Adding no boon as we have no items atm
        int             difficulty = rnd.Next(lvl / 2, lvl + 1); // Randomly select the difficulty based on the current level
        EnemyShipObject ship       = new EnemyShipObject(boon, difficulty);

        return(new EnemyIslandObject(ship));
    }
Пример #2
0
 public EnemyIslandObject(EnemyShipObject ship)
 {
     this.ship = ship;
 }