public RoboCop(PhysicsComponent2D phys, MovementAIComponent2D move, DrawComponent draw) { detectRadius = 400; movement = move; physics = phys; this.draw = draw; state = RoboCopState.STATIC; this.BoundingRectangle = new COMP476Proj.BoundingRectangle(phys.Position, 16, 6); draw.Play(); }
public SmartCop(PhysicsComponent2D phys, MovementAIComponent2D move, DrawComponent draw, SmartCopState pState) { detectRadius = 400; movement = move; physics = phys; this.draw = draw; behavior = SmartCopBehavior.DEFAULT; state = defaultState = pState; this.BoundingRectangle = new COMP476Proj.BoundingRectangle(phys.Position, 16, 6); draw.Play(); }
public DumbCop(PhysicsComponent2D phys, MovementAIComponent2D move, DrawComponent draw, DumbCopState pState, float radius) { movement = move; physics = phys; this.draw = draw; state = defaultState = pState; detectRadius = radius; this.BoundingRectangle = new COMP476Proj.BoundingRectangle(phys.Position, 16, 6); draw.Play(); }
public Pedestrian(PhysicsComponent2D phys, MovementAIComponent2D move, DrawComponent draw, PedestrianState pState) { movement = move; physics = phys; this.draw = draw; state = pState; behavior = PedestrianBehavior.DEFAULT; studentType = draw.animation.animationId.Substring(0, 8); this.BoundingRectangle = new COMP476Proj.BoundingRectangle(phys.Position, 16, 6); draw.Play(); }