Ejemplo n.º 1
0
 public override SkeletonState HandleInput(SkeletonController skeleton, SkeletonCommand command)
 {
     if (command == SkeletonCommand.DEATH)
     {
         return(DeathState);
     }
     return(null);
 }
Ejemplo n.º 2
0
        private void SkeletonDialog_Load(object sender, EventArgs e)
        {
            SkeletonCommand cmd = new SkeletonCommand();

            _threshold = cmd.Threshold;

            _numThreshold.Value = _threshold;
        }
Ejemplo n.º 3
0
    public override SkeletonState HandleInput(SkeletonController skeleton, SkeletonCommand command)
    {
        switch (command)
        {
        case SkeletonCommand.HIT:
            return(HitState);

        case SkeletonCommand.DEATH:
            return(DeathState);
        }

        return(null);
    }
Ejemplo n.º 4
0
    public override SkeletonState HandleInput(SkeletonController skeleton, SkeletonCommand command)
    {
        switch (command)
        {
        case SkeletonCommand.HIT:
            return(HitState);

        case SkeletonCommand.DEATH:
            return(DeathState);
        }

        if (!IsOnGround(skeleton.rigidBody2d))
        {
            return(null);
        }

        return(IdleState);
    }
Ejemplo n.º 5
0
    public override SkeletonState HandleInput(SkeletonController skeleton, SkeletonCommand command)
    {
        switch (command)
        {
        case SkeletonCommand.STOP:
            return(IdleState);

        case SkeletonCommand.JUMP:
            return(JumpState);

        case SkeletonCommand.ATTACK:
            return(AttackState);

        case SkeletonCommand.HIT:
            return(HitState);

        case SkeletonCommand.DEATH:
            return(DeathState);
        }

        return(null);
    }
Ejemplo n.º 6
0
 public override SkeletonState HandleInput(SkeletonController skeleton, SkeletonCommand command)
 {
     return(null);
 }
Ejemplo n.º 7
0
 public abstract SkeletonState HandleInput(SkeletonController skeleton, SkeletonCommand command);