public Collidable(Game game, Entity.Entity parent, CollisionType type, CollisionEvent e, int health, int damage, Collidable parentCollidable, BoundingBox boundingBox) : base(game, parent) { this.onCollision = e; this.type = type; this.health = health; this.damage = damage; children = new List<Collidable>(); parentCollidable.addChild(this); this.boundingBox = boundingBox; }
public Collidable(Game game, Entity.Entity parent, CollisionType type, CollisionEvent e, int health, int damage,Collidable parentCollidable, float range = 50.0f) : base(game, parent) { this.onCollision = e; this.type = type; this.health = health; this.damage = damage; children = new List<Collidable>(); parentCollidable.addChild(this); rangeSquared = range * range; }