@@ -18,101 +18,101 @@ public class Class44 implements Runnable {
18
18
public static int anInt1049 = 0 ;
19
19
20
20
21
- public static void method898 (int arg0 , Actor arg1 ) {
22
- arg1 .anInt3077 = arg1 .idleAnimation ;
23
- if (arg1 .anInt3109 == 0 )
24
- arg1 .anInt3074 = 0 ;
21
+ public static void processWalkingStep (int arg0 , Actor actor ) {
22
+ actor .anInt3077 = actor .idleAnimation ;
23
+ if (actor .anInt3109 == 0 )
24
+ actor .anInt3074 = 0 ;
25
25
else {
26
- if (arg1 .playingAnimation != -1 && arg1 .playingAnimationDelay == 0 ) {
27
- AnimationSequence animationSequence = ProducingGraphicsBuffer_Sub1 .getAnimationSequence (arg1 .playingAnimation );
28
- if (arg1 .anInt3094 > 0 && animationSequence .precedenceAnimating == 0 ) {
29
- arg1 .anInt3074 ++;
26
+ if (actor .playingAnimation != -1 && actor .playingAnimationDelay == 0 ) {
27
+ AnimationSequence animationSequence = ProducingGraphicsBuffer_Sub1 .getAnimationSequence (actor .playingAnimation );
28
+ if (actor .anInt3094 > 0 && animationSequence .precedenceAnimating == 0 ) {
29
+ actor .anInt3074 ++;
30
30
return ;
31
31
}
32
- if (arg1 .anInt3094 <= 0 && animationSequence .priority == 0 ) {
33
- arg1 .anInt3074 ++;
32
+ if (actor .anInt3094 <= 0 && animationSequence .priority == 0 ) {
33
+ actor .anInt3074 ++;
34
34
return ;
35
35
}
36
36
}
37
- int i = arg1 .worldX ;
38
- int i_0_ = arg1 .pathY [-1 + arg1 .anInt3109 ] * 128 + 64 * arg1 . anInt3096 ;
39
- int i_1_ = arg1 .worldY ;
40
- int i_2_ = 64 * arg1 . anInt3096 + arg1 .pathX [arg1 .anInt3109 + -1 ] * 128 ;
37
+ int i = actor .worldX ;
38
+ int i_0_ = actor .pathY [-1 + actor .anInt3109 ] * 128 + 64 * actor . size ;
39
+ int i_1_ = actor .worldY ;
40
+ int i_2_ = 64 * actor . size + actor .pathX [actor .anInt3109 + -1 ] * 128 ;
41
41
if (-i + i_0_ > 256 || -i + i_0_ < -256 || -i_1_ + i_2_ > 256 || i_2_ + -i_1_ < -256 ) {
42
- arg1 .worldX = i_0_ ;
43
- arg1 .worldY = i_2_ ;
42
+ actor .worldX = i_0_ ;
43
+ actor .worldY = i_2_ ;
44
44
} else {
45
45
if (i < i_0_ ) {
46
46
if (i_1_ < i_2_ )
47
- arg1 .initialFaceDirection = 1280 ;
47
+ actor .initialFaceDirection = 1280 ;
48
48
else if (i_2_ < i_1_ )
49
- arg1 .initialFaceDirection = 1792 ;
49
+ actor .initialFaceDirection = 1792 ;
50
50
else
51
- arg1 .initialFaceDirection = 1536 ;
51
+ actor .initialFaceDirection = 1536 ;
52
52
} else if (i <= i_0_ ) {
53
53
if (i_2_ <= i_1_ ) {
54
54
if (i_2_ < i_1_ )
55
- arg1 .initialFaceDirection = 0 ;
55
+ actor .initialFaceDirection = 0 ;
56
56
} else
57
- arg1 .initialFaceDirection = 1024 ;
57
+ actor .initialFaceDirection = 1024 ;
58
58
} else if (i_1_ < i_2_ )
59
- arg1 .initialFaceDirection = 768 ;
59
+ actor .initialFaceDirection = 768 ;
60
60
else if (i_2_ < i_1_ )
61
- arg1 .initialFaceDirection = 256 ;
61
+ actor .initialFaceDirection = 256 ;
62
62
else
63
- arg1 .initialFaceDirection = 512 ;
64
- int i_3_ = arg1 .turnAroundAnimationId ;
63
+ actor .initialFaceDirection = 512 ;
64
+ int i_3_ = actor .turnAroundAnimationId ;
65
65
int i_4_ = 4 ;
66
- if (arg1 .initialFaceDirection != arg1 .anInt3118 && arg1 .facingActorIndex == -1 && arg1 .anInt3113 != 0 )
66
+ if (actor .initialFaceDirection != actor .anInt3118 && actor .facingActorIndex == -1 && actor .anInt3113 != 0 )
67
67
i_4_ = 2 ;
68
- if (arg1 .anInt3109 > 2 )
68
+ if (actor .anInt3109 > 2 )
69
69
i_4_ = 6 ;
70
- if (arg1 .anInt3109 > 3 )
70
+ if (actor .anInt3109 > 3 )
71
71
i_4_ = 8 ;
72
- int i_5_ = 0x7ff & -arg1 .anInt3118 + arg1 .initialFaceDirection ;
72
+ int i_5_ = 0x7ff & -actor .anInt3118 + actor .initialFaceDirection ;
73
73
if (i_5_ > 1024 )
74
74
i_5_ -= 2048 ;
75
75
if ((i_5_ ^ 0xffffffff ) > arg0 || i_5_ > 256 ) {
76
76
if (i_5_ < 256 || i_5_ >= 768 ) {
77
77
if (i_5_ >= -768 && i_5_ <= -256 )
78
- i_3_ = arg1 .turnRightAnimationId ;
78
+ i_3_ = actor .turnRightAnimationId ;
79
79
} else
80
- i_3_ = arg1 .turnLeftAnimationId ;
80
+ i_3_ = actor .turnLeftAnimationId ;
81
81
} else
82
- i_3_ = arg1 .walkAnimationId ;
82
+ i_3_ = actor .walkAnimationId ;
83
83
if (i_3_ == -1 )
84
- i_3_ = arg1 .walkAnimationId ;
85
- arg1 .anInt3077 = i_3_ ;
86
- if (arg1 .anInt3074 > 0 && arg1 .anInt3109 > 1 ) {
87
- arg1 .anInt3074 --;
84
+ i_3_ = actor .walkAnimationId ;
85
+ actor .anInt3077 = i_3_ ;
86
+ if (actor .anInt3074 > 0 && actor .anInt3109 > 1 ) {
87
+ actor .anInt3074 --;
88
88
i_4_ = 8 ;
89
89
}
90
- if (arg1 .aBooleanArray3072 [-1 + arg1 .anInt3109 ])
90
+ if (actor .aBooleanArray3072 [-1 + actor .anInt3109 ])
91
91
i_4_ <<= 1 ;
92
92
if (i_1_ < i_2_ ) {
93
- arg1 .worldY += i_4_ ;
94
- if (arg1 .worldY > i_2_ )
95
- arg1 .worldY = i_2_ ;
93
+ actor .worldY += i_4_ ;
94
+ if (actor .worldY > i_2_ )
95
+ actor .worldY = i_2_ ;
96
96
} else if (i_1_ > i_2_ ) {
97
- arg1 .worldY -= i_4_ ;
98
- if (arg1 .worldY < i_2_ )
99
- arg1 .worldY = i_2_ ;
97
+ actor .worldY -= i_4_ ;
98
+ if (actor .worldY < i_2_ )
99
+ actor .worldY = i_2_ ;
100
100
}
101
- if (i_4_ >= 8 && arg1 .anInt3077 == arg1 .walkAnimationId && arg1 .runAnimationId != -1 )
102
- arg1 .anInt3077 = arg1 .runAnimationId ;
101
+ if (i_4_ >= 8 && actor .anInt3077 == actor .walkAnimationId && actor .runAnimationId != -1 )
102
+ actor .anInt3077 = actor .runAnimationId ;
103
103
if (i < i_0_ ) {
104
- arg1 .worldX += i_4_ ;
105
- if (i_0_ < arg1 .worldX )
106
- arg1 .worldX = i_0_ ;
104
+ actor .worldX += i_4_ ;
105
+ if (i_0_ < actor .worldX )
106
+ actor .worldX = i_0_ ;
107
107
} else if (i_0_ < i ) {
108
- arg1 .worldX -= i_4_ ;
109
- if (i_0_ > arg1 .worldX )
110
- arg1 .worldX = i_0_ ;
108
+ actor .worldX -= i_4_ ;
109
+ if (i_0_ > actor .worldX )
110
+ actor .worldX = i_0_ ;
111
111
}
112
- if (arg1 .worldX == i_0_ && i_2_ == arg1 .worldY ) {
113
- if (arg1 .anInt3094 > 0 )
114
- arg1 .anInt3094 --;
115
- arg1 .anInt3109 --;
112
+ if (actor .worldX == i_0_ && i_2_ == actor .worldY ) {
113
+ if (actor .anInt3094 > 0 )
114
+ actor .anInt3094 --;
115
+ actor .anInt3109 --;
116
116
}
117
117
}
118
118
}
0 commit comments