52
52
import java .net .InetAddress ;
53
53
import java .net .Socket ;
54
54
55
- public class Main extends GameShell {
55
+ public class Game extends GameShell {
56
56
57
57
/**
58
58
* The codec currently in use to encode and decode packets.
@@ -726,8 +726,8 @@ else if (!params[2].equals("rc")) {
726
726
printHelp ();
727
727
}
728
728
729
- Main main = new Main ();
730
- main .openClientApplet ("client435" , 13 , 32 + modewhat , InetAddress .getByName (Configuration .SERVER_ADDRESS ), 435 );
729
+ Game game = new Game ();
730
+ game .openClientApplet ("client435" , 13 , 32 + modewhat , InetAddress .getByName (Configuration .SERVER_ADDRESS ), 435 );
731
731
732
732
} catch (Exception exception ) {
733
733
exception .printStackTrace ();
@@ -764,7 +764,7 @@ public static void setConfigToDefaults() {
764
764
SoundSystem .reset ();
765
765
widgetSelected = 0 ;
766
766
// TODO is this necessary? or should it be removed alongside other randomisation
767
- Main .playerCamera .setYaw (0x7ff & -10 + (int ) (20.0 * Math .random ()));
767
+ Game .playerCamera .setYaw (0x7ff & -10 + (int ) (20.0 * Math .random ()));
768
768
Minimap .minimapState = 0 ;
769
769
Player .localPlayerCount = 0 ;
770
770
Class55 .destinationY = 0 ;
@@ -825,7 +825,7 @@ public static void method353() {
825
825
MovedStatics .renderProjectiles ();
826
826
MovedStatics .renderSpotAnims ();
827
827
if (!Player .cutsceneActive ) {
828
- int pitch = Main .playerCamera .getPitch ();
828
+ int pitch = Game .playerCamera .getPitch ();
829
829
if (SceneCamera .cameraTerrainMinScaledPitch / 256 > pitch ) {
830
830
pitch = SceneCamera .cameraTerrainMinScaledPitch / 256 ;
831
831
}
@@ -834,7 +834,7 @@ public static void method353() {
834
834
pitch = 128 + SceneCamera .customCameraAmplitude [4 ];
835
835
}
836
836
837
- Main .playerCamera .setPitch (pitch );
837
+ Game .playerCamera .setPitch (pitch );
838
838
}
839
839
840
840
int i ;
@@ -916,7 +916,7 @@ public static void method353() {
916
916
* Get the currently active camera.
917
917
*/
918
918
public static Camera getActiveCamera () {
919
- return Player .cutsceneActive ? Main .cutsceneCamera : Main .playerCamera ;
919
+ return Player .cutsceneActive ? Game .cutsceneCamera : Game .playerCamera ;
920
920
}
921
921
922
922
public static void method357 (CacheArchive arg0 , CacheArchive arg2 ) {
@@ -1209,7 +1209,7 @@ public static void method164() {
1209
1209
1210
1210
public static void moveTowardsTarget () {
1211
1211
// TODO (James) this moves the cutscene camera towards its target, we should move this into the CutsceneCamera class
1212
- CutsceneCamera camera = Main .cutsceneCamera ;
1212
+ CutsceneCamera camera = Game .cutsceneCamera ;
1213
1213
1214
1214
int i = camera .getMoveTo ().y ;
1215
1215
int i_3_ = camera .getMoveTo ().x ;
@@ -1428,8 +1428,8 @@ else if(x > 764)
1428
1428
InteractiveObject .anInt487 = 20 ;
1429
1429
MovedStatics .aBoolean565 = false ;
1430
1430
SceneCluster .packetBuffer .putPacket (58 );
1431
- SceneCluster .packetBuffer .putShortBE (Main .playerCamera .getYaw ());
1432
- SceneCluster .packetBuffer .putShortBE (Main .playerCamera .getPitch ());
1431
+ SceneCluster .packetBuffer .putShortBE (Game .playerCamera .getYaw ());
1432
+ SceneCluster .packetBuffer .putShortBE (Game .playerCamera .getPitch ());
1433
1433
}
1434
1434
if (MovedStatics .aBoolean571 && !aBoolean1735 ) {
1435
1435
aBoolean1735 = true ;
0 commit comments