public SelfDestructOnJumpComponent(Entity parent, Environment environment, Character attackingCharacter)
     : base(parent, "SelfDestructOnJumpComponent")
 {
     this.markedForRemoval = false;
     this.environment = environment;
     this.jumpComponent = (JumpComponent) attackingCharacter.GetComponent("JumpComponent");
 }
 public GrabComponent(Entity parent, Environment environment, float baseDamage, float maxDamage)
     : base(parent, "GrabComponent")
 {
     this.environment = environment;
     this.baseDamage = baseDamage;
     this.maxDamage = maxDamage;
 }
 public JumpComponent(Entity parent, int jumpHeight, int maxJumps, Environment environment)
     : base(parent, "JumpComponent")
 {
     this.JumpHeight = jumpHeight;
     this.MaxJumps = maxJumps;
     this.JumpedThisFrame = false;
     this.environment = environment;
 }
 public ItemManagerComponent(Entity parent, EntityManager entityManager, PhysicsSimulator physics, Arena arena)
     : base(parent, "ItemManagerComponent")
 {
     this.entityManager = entityManager;
     this.physics = physics;
     this.arena = arena;
     this.Items = new List<Item>();
 }
 public PunchComponent(Entity parent, Environment environment, int punchSpeed, float baseDamage, float maxDamage, float minFlinch, float maxFlinch)
     : base(parent, "PunchComponent")
 {
     this.punchSpeed = punchSpeed;
     this.environment = environment;
     this.baseDamage = baseDamage;
     this.maxDamage = maxDamage;
     this.minFlinch = minFlinch;
     this.maxFlinch = maxFlinch;
 }
 public FireProjectileComponent(Entity parent, int fireSpeed, int fireVelocity, Environment environment, float baseDamage, float maxDamage, float minFlinch, float maxFlinch)
     : base(parent, "FireProjectileComponent")
 {
     this.fireSpeed = fireSpeed;
     this.environment = environment;
     this.fireVelocity = fireVelocity;
     this.baseDamage = baseDamage;
     this.maxDamage = maxDamage;
     this.minFlinch = minFlinch;
     this.maxFlinch = maxFlinch;
 }
 public VitalityComponent(Entity parent, int lives)
     : base(parent, "VitalityComponent")
 {
     this.IsAlive = true;
     this.IsKO = false;
     this.LivesLeft = lives - 1;
     this.RageMeter = 100.0f;
     for (int i = 0; i < 4; i++)
     {
         timeTillRumbleOff[i] = 0;
     }
 }
        public DrawableHUDComponent(Entity parent, List<Character> characters)
            : base(parent, "DrawableHUDComponent")
        {
            this.rageFont = ContentLoader.HUDRageFont;
            this.livesFont = ContentLoader.HUDLivesFont;
            this.characters = characters;

            vitalityComponents = new List<VitalityComponent>();
            for (int i = 0; i < characters.Count; i++)
            {
                VitalityComponent component = (VitalityComponent) characters[i].GetComponent("VitalityComponent");
                vitalityComponents.Add(component);
            }
            this.characters = characters;
        }
 public BasicModelComponent(Entity parent, Model model)
     : base(parent, "BasicModelComponent")
 {
     this.model = model;
 }
 /// <summary>
 /// Temporarily ignores an entity for collision. Entity is ignored 
 /// until the item is no longer colliding with the given entity.
 /// Useful for making exceptions to collision rules.
 /// </summary>
 /// <param name="entity">The entity to ignore.</param>
 public void IgnoreEntityTemporarily(Entity entity)
 {
     tempIgnoredEntities.Add(entity);
     ignoredEntities.Add(entity);
 }
 /// <summary>
 /// Permanently ignores an entity for collision. Useful for making 
 /// exceptions to collision rules.
 /// </summary>
 /// <param name="entity">The entity to ignore.</param>
 public void IgnoreEntity(Entity entity)
 {
     ignoredEntities.Add(entity);
 }
 public CubeRenderComponent(Entity parent, Matrix transform)
     : base(parent, ContentLoader.Cube)
 {
     this.Transform = transform;
 }
 public IceCreamRenderComponent(Entity parent, Matrix transform)
     : base(parent, ContentLoader.IceCream)
 {
     this.Transform = transform;
 }