Example #1
0
 public Square(SquareData data, Vector2 position, Sprite spriteSheet, Coordinate coordinate)
     : base(spriteSheet, position)
 {
     this.data       = data;
     this.position   = position;
     this.coordinate = coordinate;
 }
Example #2
0
        public DurationSquare(SquareData data, Vector2 position, Sprite spriteSheet, Coordinate coordinate)
            : base(data, position, spriteSheet, coordinate)
        {
            even     = spriteSheet.GetSubSprite(new Rectangle(144, 0, 6, 13));
            gradient = spriteSheet.GetSubSprite(new Rectangle(164, 0, 6, 13));

            emptySquare   = spriteSheet.GetSubSprite(new Rectangle(50, 0, 6, 13));
            displaySprite = emptySquare;
        }
Example #3
0
 public SquareClick(Boolean isLeftClicked, SquareData targetData, Coordinate coordinate)
 {
     this.isLeftClicked = isLeftClicked;
     this.targetData    = targetData;
     this.coordinate    = coordinate;
 }
 //Called when copying data from other SquareData
 public SquareData(SquareData sd)
 {
     enemyType = sd.enemyType;
     movement  = sd.movement;
 }