public DataMaster(WarGames.core.Game game) { this.game = game; //make sure the map is as big as the screen is map = new Map(new Vector2i( (int)Math.Round((float)(game.stage.Size.X / 32)), (int)Math.Round((float)(game.stage.Size.Y / 32) - 4) )); InterfaceBar = new InterfaceBar(); }
public InterfaceBarRenderer(InterfaceBar data) { this.data = data; rectangleShape = new RectangleShape(); rectangleShape.Position = data.Position; rectangleShape.Size = data.Size; rectangleShape.FillColor = data.FillColor; unitPictureBoxRenderer = new UnitPictureBoxRenderer(data.UnitPictureBox); healthBarRenderer = new HealthBarRenderer(data.HealthBar); MoveButtonRenderer = new MoveButtonRenderer(data.MoveButton); AttackButtonRenderer = new AttackButtonRenderer(data.AttackButton); }