public void Fire(Charicter me, float xVel, float yVel, HitBoxManager hitBoxManager, float activeTime) { m_position[0] = me.getX(); m_position[1] = me.getY() + 1.5f; m_velocity[0] = xVel; m_velocity[1] = yVel; m_active = true; m_timer = activeTime; m_sprite.enabled = true; m_hitboxID = hitBoxManager.addHitbox(m_position[0], m_position[1] - 1.0f, 2.0f, 4.0f, 3, -4.0f, 8.0f, 0.75f, 0.2f, eAttackType.PROJECTILE); }
public int AddHitbox(float xPos, float yPos, float width, float height) { return(m_hitboxManager.addHitbox(xPos, yPos, width, height)); }