Beispiel #1
0
 public LeftCommand(Avatar receiver)
 {
     this.receiver = receiver;
 }
Beispiel #2
0
 public void SmallMario(Avatar context)
 {
     context.PowerState = new SmallState();
 }
Beispiel #3
0
 public void FireMario(Avatar context)
 {
 }
Beispiel #4
0
 public void SuperMario(Avatar context)
 {
 }
Beispiel #5
0
 public Vector2 GetCollisionMin(Avatar context)
 {
     return(new Vector2(context.Position.X + 10, context.Position.Y + 7));
 }
Beispiel #6
0
 public void RightAction(Avatar context)
 {
     context.HorizontalState = new RunningRightAvatar();
     context.Velocity        = new Vector2(1, context.Velocity.Y);
 }
Beispiel #7
0
 public void LeftAction(Avatar context)
 {
     context.HorizontalState = new RightAvatar();
     context.Velocity        = new Vector2(0, context.Velocity.Y);
 }
Beispiel #8
0
 public DamageCommand(Avatar receiver)
 {
     this.receiver = receiver;
 }
Beispiel #9
0
 public SanitizerballCommand(Avatar receiver)
 {
     this.receiver = receiver;
 }
Beispiel #10
0
 public SuperMarioCommand(Avatar receiver)
 {
     this.receiver = receiver;
 }
Beispiel #11
0
 public FireMarioCommand(Avatar receiver)
 {
     this.receiver = receiver;
 }
Beispiel #12
0
 public StandardMarioCommand(Avatar receiver)
 {
     this.receiver = receiver;
 }
Beispiel #13
0
 public BrickBlockCommand(Block receiver, Avatar avatarState)
 {
     this.receiver    = receiver;
     this.avatarState = avatarState;
 }
Beispiel #14
0
 public RightCommand(Avatar receiver)
 {
     this.receiver = receiver;
 }
Beispiel #15
0
 public void LeftAction(Avatar context)
 {
 }
Beispiel #16
0
 public void DeadMario(Avatar context)
 {
 }
Beispiel #17
0
 public void LeftAction(Avatar context)
 {
     context.HorizontalState = new LeftAvatar();
 }
Beispiel #18
0
 public void UpAction(Avatar context)
 {
     context.VerticalState = new JumpingAvatar();
 }
Beispiel #19
0
 public void SmallMario(Avatar context)
 {
 }
Beispiel #20
0
 public void DownAction(Avatar context)
 {
     context.VerticalState = new CrouchingAvatar();
 }
Beispiel #21
0
 public void RightAction(Avatar context)
 {
 }
Beispiel #22
0
 public void DownAction(Avatar context)
 {
     context.VerticalState = new IdleAvatar();
 }
Beispiel #23
0
 public void FireMario(Avatar context)
 {
     context.PowerState = new FireState();
 }
Beispiel #24
0
 public void UpAction(Avatar context)
 {
 }
Beispiel #25
0
 public Vector2 GetCollisionSize(Avatar context)
 {
     return(new Vector2(12, 25));
 }
Beispiel #26
0
 public void DownAction(Avatar context)
 {
 }
Beispiel #27
0
 public void SuperMario(Avatar context)
 {
     context.PowerState = new SuperState();
 }
Beispiel #28
0
 public void RightAction(Avatar context)
 {
     context.HorizontalState = new RightAvatar();
 }
Beispiel #29
0
 public void DeadMario(Avatar context)
 {
     context.PowerState = new DeadState();
 }
Beispiel #30
0
 public CrouchCommand(Avatar receiver)
 {
     this.receiver = receiver;
 }