public override void addGuiObject(GuiObject a_go) { m_guiList.AddLast(a_go); }
public override void loadContent() { base.loadContent(); m_health = 3; m_healthHearts = new GuiObject[3]; m_healthHearts[0] = new GuiObject(new Vector2(100, 50), "GameGUI//health"); Game.getInstance().getState().addGuiObject(m_healthHearts[0]); m_healthHearts[1] = new GuiObject(new Vector2(200, 50), "GameGUI//health"); Game.getInstance().getState().addGuiObject(m_healthHearts[1]); m_healthHearts[2] = new GuiObject(new Vector2(300, 50), "GameGUI//health"); Game.getInstance().getState().addGuiObject(m_healthHearts[2]); Game.getInstance().Content.Load<Texture2D>("Images//Sprite//Hero//hero_stand"); Game.getInstance().Content.Load<Texture2D>("Images//Sprite//Hero//hero_walk"); Game.getInstance().Content.Load<Texture2D>("Images//Sprite//Hero//hero_jump"); Game.getInstance().Content.Load<Texture2D>("Images//Sprite//Hero//hero_fall"); Game.getInstance().Content.Load<Texture2D>("Images//Sprite//Hero//hero_slide"); Game.getInstance().Content.Load<Texture2D>("Images//Sprite//Hero//hero_hang"); Game.getInstance().Content.Load<Texture2D>("Images//Sprite//Hero//hero_climb"); Game.getInstance().Content.Load<Texture2D>("Images//Sprite//Hero//hero_roll"); Game.getInstance().Content.Load<Texture2D>("Images//Sprite//Hero//hero_climb_ledge"); Game.getInstance().Content.Load<Texture2D>("Images//Sprite//Hero//hero_window_heave"); Game.getInstance().Content.Load<Texture2D>("Images//Sprite//Hero//hero_ventilation_idle"); Game.getInstance().Content.Load<Texture2D>("Images//Sprite//Hero//hero_ventilation_vertical"); Game.getInstance().Content.Load<Texture2D>("Images//Sprite//Hero//hero_ventilation_horizontal"); Game.getInstance().Content.Load<Texture2D>("Images//Sprite//Hero//hero_swing_back"); Game.getInstance().Content.Load<Texture2D>("Images//Sprite//Hero//hero_swing_still"); Game.getInstance().Content.Load<Texture2D>("Images//Sprite//Hero//hero_swing_forth"); m_standHitBox = new CollisionRectangle(0, 0, 70, 127, m_position); m_rollHitBox = new CollisionRectangle(0, 0, 70, 72, m_position); // 67 m_SlideBox = new CollisionRectangle(0, m_standHitBox.getOutBox().Height / 2, m_standHitBox.getOutBox().Width, 1, m_position); m_hangHitBox = new CollisionRectangle(0, 0, 70, 80, m_position); m_collisionShape = m_standHitBox; m_ventilationDirection = new List<Direction>(); m_upDownList = new List<Direction>(); m_upDownList.Add(Direction.Up); m_upDownList.Add(Direction.Down); m_leftRightList = new List<Direction>(); m_leftRightList.Add(Direction.Left); m_leftRightList.Add(Direction.Right); m_playerCurrentSpeed = PLAYERSPEED; m_swingSpeed = 0; m_currentVentilationImage = VENTIDLEIMAGE; m_position.plusYWith(-1); }
private void addHearts() { m_health = 3; m_healthHearts = new GuiObject[3]; m_healthHearts[0] = new GuiObject(new Vector2(100, 50), "GameGUI//health"); Game.getInstance().getState().addGuiObject(m_healthHearts[0]); m_healthHearts[1] = new GuiObject(new Vector2(180, 50), "GameGUI//health"); Game.getInstance().getState().addGuiObject(m_healthHearts[1]); m_healthHearts[2] = new GuiObject(new Vector2(260, 50), "GameGUI//health"); Game.getInstance().getState().addGuiObject(m_healthHearts[2]); }
public virtual void addGuiObject(GuiObject a_go) { throw new NotImplementedException(); }