Example #1
0
 //JewelHandler handles the game. All inputed values from the beginning is added.
 public JewelHandler(Vector2 _WorldSize, int _jewelSize, byte _numberOfJewels, int _desiredNumber, Vector2 _position)
     : base(_position)
 {
     WorldSize      = _WorldSize;
     jewelSize      = _jewelSize;
     numberOfJewels = _numberOfJewels;
     desiredNumber  = _desiredNumber;
     directions.Add(new Point(1, 0));
     directions.Add(new Point(-1, 0));
     directions.Add(new Point(0, 1));
     directions.Add(new Point(0, -1));
     SelectMarker = new GraphicalObject("Selected", new Vector2(0, 0));
     NewWorld();
 }
Example #2
0
 //JewelHandler handles the game. All inputed values from the beginning is added.
 public JewelHandler(Vector2 _WorldSize, int _jewelSize, byte _numberOfJewels, int _desiredNumber, Vector2 _position)
     : base(_position)
 {
     WorldSize = _WorldSize;
     jewelSize = _jewelSize;
     numberOfJewels = _numberOfJewels;
     desiredNumber = _desiredNumber;
     directions.Add(new Point(1, 0));
     directions.Add(new Point(-1, 0));
     directions.Add(new Point(0, 1));
     directions.Add(new Point(0, -1));
     SelectMarker = new GraphicalObject("Selected", new Vector2(0, 0));
     NewWorld();
 }