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