コード例 #1
0
ファイル: RoboCop.cs プロジェクト: iknowDavenMC/SuperFlash
 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();
 }
コード例 #2
0
ファイル: SmartCop.cs プロジェクト: iknowDavenMC/SuperFlash
 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();
 }
コード例 #3
0
ファイル: DumbCop.cs プロジェクト: iknowDavenMC/SuperFlash
 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();
 }
コード例 #4
0
ファイル: Pedestrian.cs プロジェクト: iknowDavenMC/SuperFlash
 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();
 }