public Destroyer(GuiGrid parent, Vector2 location, Texture2D texture, Direction direction) { this.parent = parent; this.location = location; this.texture = texture; Direction = direction; Remove = false; Position = new Point(-1, -1); }
public Cell(GuiGrid parent, Shape shape, ShapesAtlas texture, Texture2D backTexture, int row, int column) { this.parent = parent; Shape = shape; shapeTexture = texture; this.backTexture = backTexture; Row = row; Column = column; size = parent.CellSize; location = new Vector2((Column * size.X) + parent.Rectangle.X, (Row * size.Y) + parent.Rectangle.Y); Animation = Animation.FadeIn; State = GuiElementState.Normal; Bonus = Bonus.None; IsSelected = false; }