Beispiel #1
0
        public PuzzleClass(int x, int y) : base(MapContent.PuzzleSpace, x, y)
        {
            healthPoints = Utils.rnd.Next(5, 101);
            lootPoints   = Utils.rnd.Next(5, 201);
            combatPoints = Utils.rnd.Next(5, 11);
            armourPoints = Utils.rnd.Next(5, 11);

            Array values = Enum.GetValues(typeof(PuzzleKinds));

            kind        = (PuzzleKinds)values.GetValue(Utils.rnd.Next(values.Length));
            values      = Enum.GetValues(typeof(PuzzleDescriptions));
            description = (PuzzleDescriptions)values.GetValue(Utils.rnd.Next(values.Length));
        }
Beispiel #2
0
 public void Init(Connectivity.Client con, PuzzleKinds kind)
 {
     Connection = con;
     Kind       = kind;
 }