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