예제 #1
0
        public PlayerChar()
            : base()
        {
            actionSM           = new MarioActionStateMachine(this);
            powerSM            = new MarioPowerUpStateMachine(this);
            CurrentActionState = actionSM.Idle;

            CurrentPowerState = powerSM.Standard;
            HUD.PointTracker.Subscribe(this);
            StarTimer = 0;
        }
예제 #2
0
 protected AbstractActionState(MarioActionStateMachine sm, PlayerChar player)
 {
     StateMachine = sm;
     PlayerChar   = player;
 }
예제 #3
0
 public MarioRunningState(MarioActionStateMachine sm, PlayerChar player)
     : base(sm, player)
 {
     Animation = new MarioRunningAnimation();
 }
예제 #4
0
 public MarioCrouchingState(MarioActionStateMachine sm, PlayerChar player)
     : base(sm, player)
 {
     Animation = new MarioCrouchingAnimation();
     timer     = 0;
 }
예제 #5
0
 public MarioIdleState(MarioActionStateMachine sm, PlayerChar player) : base(sm, player)
 {
     Animation = new MarioStandingAnimation();
 }