public Square(SquareData data, Vector2 position, Sprite spriteSheet, Coordinate coordinate) : base(spriteSheet, position) { this.data = data; this.position = position; this.coordinate = coordinate; }
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; }
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; }