NScumm.Sword1.Logic.fnStand C# (CSharp) Méthode

fnStand() private méthode

private fnStand ( SwordObject cpt, int id, int dir, int stance, int c, int d, int a, int b ) : int
cpt SwordObject
id int
dir int
stance int
c int
d int
a int
b int
Résultat int
        private int fnStand(SwordObject cpt, int id, int dir, int stance, int c, int d, int a, int b)
        {
            if ((dir < 0) || (dir > 8))
            {
                // TODO: warning("fnStand:: invalid direction %d", dir);
                return SCRIPT_CONT;
            }
            if (dir == 8)
                dir = cpt.dir;
            cpt.resource = cpt.walk_resource;
            cpt.status |= STAT_SHRINK;
            cpt.anim_x = cpt.xcoord;
            cpt.anim_y = cpt.ycoord;
            cpt.frame = 96 + dir;
            cpt.dir = dir;
            return SCRIPT_STOP;
        }