WindowsPhoneSpeedyBlupi was rewritten from C# to Java

This commit is contained in:
Robert Vokac 2024-12-20 23:14:42 +01:00
parent 4f029d3b1c
commit 0ff2f458dd
Signed by: robertvokac
GPG Key ID: FB9CE8E20AADA55F
31 changed files with 4059 additions and 3498 deletions

View File

@ -23,6 +23,8 @@ dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-api:5.10.3" testImplementation "org.junit.jupiter:junit-jupiter-api:5.10.3"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.10.3" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.10.3"
api "com.pixelgamelibrary:pixel:$pixelVersion" api "com.pixelgamelibrary:pixel:$pixelVersion"
implementation "com.openeggbert.jdotnet:jdotnet:$jdotnetVersion"
implementation "com.openeggbert.jxna:jxna:$jxnaVersion"
if(enableGraalNative == 'true') { if(enableGraalNative == 'true') {
implementation "io.github.berstanio:gdx-svmhelper-annotations:$graalHelperVersion" implementation "io.github.berstanio:gdx-svmhelper-annotations:$graalHelperVersion"

View File

@ -1,15 +1,13 @@
using System; package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsPhoneSpeedyBlupi import com.openeggbert.jdotnet.System.*;
{
public interface Accelerometer public interface Accelerometer {
{
void Start(); void Start();
void Stop();
event EventHandler<AccelerometerEventArgs> CurrentValueChanged; void Stop();
}
@Event
EventHandler<AccelerometerEventArgs> CurrentValueChanged();
} }

View File

@ -1,14 +1,15 @@
using System; package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsPhoneSpeedyBlupi import com.openeggbert.jdotnet.System.Event;
{ import com.openeggbert.jdotnet.System.EventHandler;
public class AccelerometerDummyImpl : Accelerometer import com.openeggbert.jdotnet.System.EventHandlerImpl;
public class AccelerometerDummyImpl implements Accelerometer
{ {
public event EventHandler<AccelerometerEventArgs> CurrentValueChanged; private final EventHandler<AccelerometerEventArgs> CurrentValueChangedInternal = new EventHandlerImpl<AccelerometerEventArgs>();
public @Event EventHandler<AccelerometerEventArgs> CurrentValueChanged() {return CurrentValueChangedInternal;}
public void Start() public void Start()
{ {
@ -20,4 +21,3 @@ namespace WindowsPhoneSpeedyBlupi
//throw new AccelerometerFailedException(); //throw new AccelerometerFailedException();
} }
} }
}

View File

@ -1,23 +1,24 @@
using System; package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsPhoneSpeedyBlupi import com.openeggbert.jdotnet.System.EventArgs;
{
public class AccelerometerEventArgs : EventArgs
{
public float X { get; } import lombok.Getter;
public float Y { get; }
public float Z { get; }
public AccelerometerEventArgs(float x, float y, float z) public class AccelerometerEventArgs extends EventArgs {
{
X = x; public float X() {return getX();}
Y = y; public float Y() {return getY();}
Z = z; public float Z() {return getZ();}
} @Getter
private float X;
@Getter
private float Y;
@Getter
private float Z;
public AccelerometerEventArgs(float x, float y, float z) {
X = x;
Y = y;
Z = z;
} }
} }

View File

@ -1,13 +1,8 @@
using System; package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsPhoneSpeedyBlupi public class AccelerometerFactory {
{
public class AccelerometerFactory public static Accelerometer Create() {
{ return new AccelerometerDummyImpl();
public static Accelerometer Create() { return new AccelerometerDummyImpl(); }
} }
} }

View File

@ -1,12 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsPhoneSpeedyBlupi
{
public class AccelerometerFailedException : Exception
{
}
}

View File

@ -1,26 +1,35 @@
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439 package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
// WindowsPhoneSpeedyBlupi.Game1
using System;
using Microsoft.Xna.Framework;
//using Microsoft.Xna.Framework.GamerServices;//todo remove me
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Input.Touch;
using Microsoft.Xna.Framework.Media;
using WindowsPhoneSpeedyBlupi;
using static System.Net.Mime.MediaTypeNames;
namespace WindowsPhoneSpeedyBlupi // WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
{ // WindowsPhoneSpeedyBlupi.Game1
public class Game1 : Game import com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi.GameData.GamerInfo;
import static com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.default_.default_;
import com.openeggbert.jdotnet.System.*;
import com.openeggbert.jxna.Microsoft.Xna.Framework.*;
import com.openeggbert.jxna.Microsoft.Xna.Framework.Content.ContentManager;
//import com.openeggbert.jxna.Microsoft.Xna.Framework.GamerServices;//todo remove me
import com.openeggbert.jxna.Microsoft.Xna.Framework.Input.*;
import com.openeggbert.jxna.Microsoft.Xna.Framework.Input.Touch.*;
import com.openeggbert.jxna.Microsoft.Xna.Framework.Media.*;
import com.openeggbert.jxna.Microsoft.Xna.Framework.Game;
//import static com.openeggbert.jdotnet.System.Net.Mime.MediaTypeNames.*;
import lombok.Getter;
import lombok.Setter;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.readonly;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.namespace;
@namespace(name = "WindowsPhoneSpeedyBlupi")
public class Game1 extends Game
{ {
private static readonly double[] waitTable = new double[24] private static @readonly final double[] waitTable = new double[]
{ {
0.1, 7.0, 0.2, 20.0, 0.25, 22.0, 0.45, 50.0, 0.6, 53.0, 0.1, 7.0, 0.2, 20.0, 0.25, 22.0, 0.45, 50.0, 0.6, 53.0,
0.65, 58.0, 0.68, 60.0, 0.8, 70.0, 0.84, 75.0, 0.9, 84.0, 0.65, 58.0, 0.68, 60.0, 0.8, 70.0, 0.84, 75.0, 0.9, 84.0,
0.94, 91.0, 1.0, 100.0 0.94, 91.0, 1.0, 100.0
}; };
private static readonly Def.ButtonGlygh[] cheatGeste = new Def.ButtonGlygh[10] private static @readonly final Def.ButtonGlygh[] cheatGeste = new Def.ButtonGlygh[]
{ {
Def.ButtonGlygh.Cheat12, Def.ButtonGlygh.Cheat12,
Def.ButtonGlygh.Cheat22, Def.ButtonGlygh.Cheat22,
@ -34,17 +43,17 @@ namespace WindowsPhoneSpeedyBlupi
Def.ButtonGlygh.Cheat32 Def.ButtonGlygh.Cheat32
}; };
private readonly GraphicsDeviceManager graphics; private @readonly final GraphicsDeviceManager graphics;
private readonly Pixmap pixmap; private @readonly final Pixmap pixmap;
private readonly Sound sound; private @readonly final Sound sound;
private readonly Decor decor; private @readonly final Decor decor;
private readonly InputPad inputPad; private @readonly final InputPad inputPad;
private readonly GameData gameData; private @readonly final GameData gameData;
private Def.Phase phase; private Def.Phase phase;
@ -64,51 +73,45 @@ namespace WindowsPhoneSpeedyBlupi
private double waitProgress; private double waitProgress;
private bool isTrialMode; private boolean isTrialMode;
private bool simulateTrialMode; private boolean simulateTrialMode;
private bool playSetup; private boolean playSetup;
private int phaseTime; private int phaseTime;
private Def.Phase fadeOutPhase; private Def.Phase fadeOutPhase;
private int fadeOutMission; private int fadeOutMission;
public boolean IsRankingMode() {return false;}
public bool IsRankingMode public boolean IsTrialMode()
{ {
get
{
return false;
}
}
public bool IsTrialMode
{
get
{
if (!simulateTrialMode) if (!simulateTrialMode)
{ {
return isTrialMode; return isTrialMode;
} }
return true; return true;
}
} }
public Game1() public Game1()
{ {
Exiting += OnExiting;
if(!TouchPanel.GetCapabilities().IsConnected) Exiting().addEventListener((e)-> this.OnExiting(this, new ExitingEventArgs()));
if(!TouchPanel.GetCapabilities().IsConnected())
{ {
this.IsMouseVisible = true; this.setMouseVisible(true);
Mouse.SetCursor(MouseCursor.Arrow); Mouse.SetCursor(MouseCursor.Arrow);
} }
graphics = new GraphicsDeviceManager(this); graphics = new GraphicsDeviceManager(this);
graphics.IsFullScreen = false; graphics.setFullScreen(false);
base.Content.RootDirectory = "Content"; super.getContent().setRootDirectory("Content");
base.TargetElapsedTime = TimeSpan.FromTicks(500000L); super.setTargetElapsedTime(TimeSpan.FromTicks(500000L));
base.InactiveSleepTime = TimeSpan.FromSeconds(1.0); super.setInactiveSleepTime(TimeSpan.FromSeconds(1.0d));
missionToStart1 = -1; missionToStart1 = -1;
missionToStart2 = -1; missionToStart2 = -1;
gameData = new GameData(); gameData = new GameData();
@ -116,36 +119,33 @@ namespace WindowsPhoneSpeedyBlupi
sound = new Sound(this, gameData); sound = new Sound(this, gameData);
decor = new Decor(); decor = new Decor();
decor.Create(sound, pixmap, gameData); decor.Create(sound, pixmap, gameData);
TinyPoint pos = new TinyPoint TinyPoint pos = new TinyPoint(196,426);
{
X = 196,
Y = 426
};
waitJauge = new Jauge(); waitJauge = new Jauge();
waitJauge.Create(pixmap, sound, pos, 3, false); waitJauge.Create(pixmap, sound, pos, 3, false);
waitJauge.SetHide(false); waitJauge.SetHide(false);
waitJauge.Zoom = 2.0; waitJauge.setZoom(2.0);
phase = Def.Phase.None; phase = Def.Phase.None;
fadeOutPhase = Def.Phase.None; fadeOutPhase = Def.Phase.None;
inputPad = new InputPad(this, decor, pixmap, sound, gameData); inputPad = new InputPad(this, decor, pixmap, sound, gameData);
SetPhase(Def.Phase.First); SetPhase(Def.Phase.First);
} }
protected override void Initialize() @Override
{ protected void Initialize() {
base.Initialize(); super.Initialize();
} }
protected override void LoadContent() @Override
{ protected void LoadContent() {
pixmap.BackgroundCache("wait"); pixmap.BackgroundCache("wait");
} }
protected override void UnloadContent() @Override
{ protected void UnloadContent() {
} }
protected override void OnDeactivated(object sender, EventArgs args) @Override
protected void OnDeactivated(Object sender, EventArgs args)
{ {
if (phase == Def.Phase.Play) if (phase == Def.Phase.Play)
{ {
@ -155,21 +155,23 @@ namespace WindowsPhoneSpeedyBlupi
{ {
decor.CurrentDelete(); decor.CurrentDelete();
} }
base.OnDeactivated(sender, args); super.OnDeactivated(sender, args);
} }
protected override void OnActivated(object sender, EventArgs args) @Override
protected void OnActivated(Object sender, EventArgs args)
{ {
continueMission = 1; continueMission = 1;
base.OnActivated(sender, args); super.OnActivated(sender, args);
} }
protected void OnExiting(object sender, EventArgs args) protected void OnExiting(Object sender, EventArgs args)
{ {
decor.CurrentDelete(); decor.CurrentDelete();
} }
protected override void Update(GameTime gameTime) @Override
protected void Update(GameTime gameTime)
{ {
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
{ {
@ -192,7 +194,7 @@ namespace WindowsPhoneSpeedyBlupi
return; return;
} }
phaseTime++; phaseTime++;
if (fadeOutPhase != 0) if (fadeOutPhase != Def.Phase.None)
{ {
if (phaseTime >= 20) if (phaseTime >= 20)
{ {
@ -211,7 +213,7 @@ namespace WindowsPhoneSpeedyBlupi
pixmap.LoadContent(); pixmap.LoadContent();
sound.LoadContent(); sound.LoadContent();
gameData.Read(); gameData.Read();
inputPad.PixmapOrigin = pixmap.Origin; inputPad.PixmapOrigin = pixmap.Origin();
SetPhase(Def.Phase.Wait); SetPhase(Def.Phase.Wait);
return; return;
} }
@ -226,7 +228,7 @@ namespace WindowsPhoneSpeedyBlupi
return; return;
} }
} }
long num = gameTime.TotalGameTime.Ticks - startTime.Ticks; long num = gameTime.TotalGameTime.Ticks() - startTime.Ticks();
waitProgress = (double)num / 50000000.0; waitProgress = (double)num / 50000000.0;
if (waitProgress > 1.0) if (waitProgress > 1.0)
{ {
@ -235,41 +237,41 @@ namespace WindowsPhoneSpeedyBlupi
return; return;
} }
inputPad.Update(); inputPad.Update();
Def.ButtonGlygh buttonPressed = inputPad.ButtonPressed; Def.ButtonGlygh buttonPressed = inputPad.ButtonPressed();
if (buttonPressed >= Def.ButtonGlygh.InitGamerA && buttonPressed <= Def.ButtonGlygh.InitGamerC) if (buttonPressed.ordinal()>= Def.ButtonGlygh.InitGamerA.ordinal() && buttonPressed.ordinal() <= Def.ButtonGlygh.InitGamerC.ordinal())
{ {
SetGamer((int)(buttonPressed - 1)); SetGamer((int)(buttonPressed.ordinal() - 1));
return; return;
} }
switch (buttonPressed) switch (buttonPressed)
{ {
case Def.ButtonGlygh.InitSetup: case InitSetup:
SetPhase(Def.Phase.MainSetup); SetPhase(Def.Phase.MainSetup);
return; return;
case Def.ButtonGlygh.PauseSetup: case PauseSetup:
SetPhase(Def.Phase.PlaySetup); SetPhase(Def.Phase.PlaySetup);
return; return;
case Def.ButtonGlygh.SetupSounds: case SetupSounds:
gameData.Sounds = !gameData.Sounds; gameData.setSounds(!gameData.Sounds());
gameData.Write(); gameData.Write();
return; return;
case Def.ButtonGlygh.SetupJump: case SetupJump:
gameData.JumpRight = !gameData.JumpRight; gameData.setJumpRight(!gameData.JumpRight());
gameData.Write(); gameData.Write();
return; return;
case Def.ButtonGlygh.SetupZoom: case SetupZoom:
gameData.AutoZoom = !gameData.AutoZoom; gameData.setAutoZoom(!gameData.AutoZoom());
gameData.Write(); gameData.Write();
return; return;
case Def.ButtonGlygh.SetupAccel: case SetupAccel:
gameData.AccelActive = !gameData.AccelActive; gameData.setAccelActive(!gameData.AccelActive());
gameData.Write(); gameData.Write();
return; return;
case Def.ButtonGlygh.SetupReset: case SetupReset:
gameData.Reset(); gameData.Reset();
gameData.Write(); gameData.Write();
return; return;
case Def.ButtonGlygh.SetupReturn: case SetupReturn:
if (playSetup) if (playSetup)
{ {
SetPhase(Def.Phase.Play, -1); SetPhase(Def.Phase.Play, -1);
@ -279,57 +281,57 @@ namespace WindowsPhoneSpeedyBlupi
SetPhase(Def.Phase.Init); SetPhase(Def.Phase.Init);
} }
return; return;
case Def.ButtonGlygh.InitPlay: case InitPlay:
SetPhase(Def.Phase.Play, 1); SetPhase(Def.Phase.Play, 1);
return; return;
case Def.ButtonGlygh.PlayPause: case PlayPause:
SetPhase(Def.Phase.Pause); SetPhase(Def.Phase.Pause);
return; return;
case Def.ButtonGlygh.WinLostReturn: case WinLostReturn:
case Def.ButtonGlygh.PauseMenu: case PauseMenu:
case Def.ButtonGlygh.ResumeMenu: case ResumeMenu:
SetPhase(Def.Phase.Init); SetPhase(Def.Phase.Init);
break; break;
} }
switch (buttonPressed) switch (buttonPressed)
{ {
case Def.ButtonGlygh.ResumeContinue: case ResumeContinue:
ContinueMission(); ContinueMission();
return; return;
case Def.ButtonGlygh.InitBuy: case InitBuy:
case Def.ButtonGlygh.TrialBuy: case TrialBuy:
MarketPlace.Show(PlayerIndex.One); MarketPlace.Show(PlayerIndex.One);
SetPhase(Def.Phase.Init); SetPhase(Def.Phase.Init);
return; return;
case Def.ButtonGlygh.InitRanking: case InitRanking:
SetPhase(Def.Phase.Ranking); SetPhase(Def.Phase.Ranking);
return; return;
case Def.ButtonGlygh.TrialCancel: case TrialCancel:
case Def.ButtonGlygh.RankingContinue: case RankingContinue:
SetPhase(Def.Phase.Init); SetPhase(Def.Phase.Init);
return; return;
case Def.ButtonGlygh.PauseBack: case PauseBack:
MissionBack(); MissionBack();
return; return;
case Def.ButtonGlygh.PauseRestart: case PauseRestart:
SetPhase(Def.Phase.Play, mission); SetPhase(Def.Phase.Play, mission);
return; return;
case Def.ButtonGlygh.PauseContinue: case PauseContinue:
SetPhase(Def.Phase.Play, -1); SetPhase(Def.Phase.Play, -1);
return; return;
case Def.ButtonGlygh.Cheat11: case Cheat11:
case Def.ButtonGlygh.Cheat12: case Cheat12:
case Def.ButtonGlygh.Cheat21: case Cheat21:
case Def.ButtonGlygh.Cheat22: case Cheat22:
case Def.ButtonGlygh.Cheat31: case Cheat31:
case Def.ButtonGlygh.Cheat32: case Cheat32:
if (buttonPressed == cheatGeste[cheatGesteIndex]) if (buttonPressed == cheatGeste[cheatGesteIndex])
{ {
cheatGesteIndex++; cheatGesteIndex++;
if (cheatGesteIndex == cheatGeste.Length) if (cheatGesteIndex == cheatGeste.length)
{ {
cheatGesteIndex = 0; cheatGesteIndex = 0;
inputPad.ShowCheatMenu = true; inputPad.setShowCheatMenu(true);
} }
} }
else else
@ -338,13 +340,13 @@ namespace WindowsPhoneSpeedyBlupi
} }
break; break;
default: default:
if (buttonPressed != 0) if (buttonPressed.ordinal() != 0)
{ {
cheatGesteIndex = 0; cheatGesteIndex = 0;
} }
break; break;
} }
if (buttonPressed >= Def.ButtonGlygh.Cheat1 && buttonPressed <= Def.ButtonGlygh.Cheat9) if (buttonPressed.ordinal() >= Def.ButtonGlygh.Cheat1.ordinal() && buttonPressed.ordinal() <= Def.ButtonGlygh.Cheat9.ordinal())
{ {
CheatAction(buttonPressed); CheatAction(buttonPressed);
} }
@ -369,7 +371,7 @@ namespace WindowsPhoneSpeedyBlupi
StartMission(num2); StartMission(num2);
} }
} }
base.Update(gameTime); super.Update(gameTime);
} }
private void MissionBack() private void MissionBack()
@ -386,7 +388,7 @@ namespace WindowsPhoneSpeedyBlupi
private void StartMission(int mission) private void StartMission(int mission)
{ {
if (mission > 20 && mission % 10 > 1 && IsTrialMode) if (mission > 20 && mission % 10 > 1 && IsTrialMode())
{ {
SetPhase(Def.Phase.Trial); SetPhase(Def.Phase.Trial);
return; return;
@ -394,15 +396,15 @@ namespace WindowsPhoneSpeedyBlupi
this.mission = mission; this.mission = mission;
if (this.mission != 1) if (this.mission != 1)
{ {
gameData.LastWorld = this.mission / 10; gameData.setLastWorld(this.mission / 10);
} }
decor.Read(0, this.mission, false); decor.Read(0, this.mission, false);
decor.LoadImages(); decor.LoadImages();
decor.SetMission(this.mission); decor.SetMission(this.mission);
decor.SetNbVies(gameData.NbVies); decor.SetNbVies(gameData.NbVies());
decor.InitializeDoors(gameData); decor.InitializeDoors(gameData);
decor.AdaptDoors(false); decor.AdaptDoors(false);
decor.MainSwitchInitialize(gameData.LastWorld); decor.MainSwitchInitialize(gameData.LastWorld());
decor.PlayPrepare(false); decor.PlayPrepare(false);
decor.StartSound(); decor.StartSound();
inputPad.StartMission(this.mission); inputPad.StartMission(this.mission);
@ -414,7 +416,7 @@ namespace WindowsPhoneSpeedyBlupi
mission = decor.GetMission(); mission = decor.GetMission();
if (mission != 1) if (mission != 1)
{ {
gameData.LastWorld = mission / 10; gameData.setLastWorld(mission / 10);
} }
decor.LoadImages(); decor.LoadImages();
decor.StartSound(); decor.StartSound();
@ -425,37 +427,38 @@ namespace WindowsPhoneSpeedyBlupi
{ {
switch (glyph) switch (glyph)
{ {
case Def.ButtonGlygh.Cheat1: case Cheat1:
decor.CheatAction(Tables.CheatCodes.OpenDoors); decor.CheatAction(Tables.CheatCodes.OpenDoors);
break; break;
case Def.ButtonGlygh.Cheat2: case Cheat2:
decor.CheatAction(Tables.CheatCodes.SuperBlupi); decor.CheatAction(Tables.CheatCodes.SuperBlupi);
break; break;
case Def.ButtonGlygh.Cheat3: case Cheat3:
decor.CheatAction(Tables.CheatCodes.ShowSecret); decor.CheatAction(Tables.CheatCodes.ShowSecret);
break; break;
case Def.ButtonGlygh.Cheat4: case Cheat4:
decor.CheatAction(Tables.CheatCodes.LayEgg); decor.CheatAction(Tables.CheatCodes.LayEgg);
break; break;
case Def.ButtonGlygh.Cheat5: case Cheat5:
gameData.Reset(); gameData.Reset();
break; break;
case Def.ButtonGlygh.Cheat6: case Cheat6:
simulateTrialMode = !simulateTrialMode; simulateTrialMode = !simulateTrialMode;
break; break;
case Def.ButtonGlygh.Cheat7: case Cheat7:
decor.CheatAction(Tables.CheatCodes.CleanAll); decor.CheatAction(Tables.CheatCodes.CleanAll);
break; break;
case Def.ButtonGlygh.Cheat8: case Cheat8:
decor.CheatAction(Tables.CheatCodes.AllTreasure); decor.CheatAction(Tables.CheatCodes.AllTreasure);
break; break;
case Def.ButtonGlygh.Cheat9: case Cheat9:
decor.CheatAction(Tables.CheatCodes.EndGoal); decor.CheatAction(Tables.CheatCodes.EndGoal);
break; break;
} }
} }
protected override void Draw(GameTime gameTime) @Override
protected void Draw(GameTime gameTime)
{ {
if (continueMission == 1) if (continueMission == 1)
{ {
@ -489,20 +492,20 @@ namespace WindowsPhoneSpeedyBlupi
{ {
DrawWaitProgress(); DrawWaitProgress();
} }
base.Draw(gameTime); super.Draw(gameTime);
} }
private void DrawBackgroundFade() private void DrawBackgroundFade()
{ {
if (phase == Def.Phase.Init) if (phase == Def.Phase.Init)
{ {
double num = Math.Min((double)phaseTime / 20.0, 1.0); double num = Math_.Min((double)phaseTime / 20.0, 1.0);
TinyRect rect; TinyRect rect;
double opacity; double opacity;
if (fadeOutPhase == Def.Phase.MainSetup) if (fadeOutPhase == Def.Phase.MainSetup)
{ {
num = (1.0 - num) * (1.0 - num); num = (1.0 - num) * (1.0 - num);
TinyRect tinyRect = default(TinyRect); TinyRect tinyRect = default_(new TinyRect());
tinyRect.Left = (int)(720.0 - 640.0 * num); tinyRect.Left = (int)(720.0 - 640.0 * num);
tinyRect.Right = (int)(1360.0 - 640.0 * num); tinyRect.Right = (int)(1360.0 - 640.0 * num);
tinyRect.Top = 0; tinyRect.Top = 0;
@ -512,8 +515,8 @@ namespace WindowsPhoneSpeedyBlupi
} }
else else
{ {
num = ((fadeOutPhase != 0) ? (1.0 - num * 2.0) : (1.0 - (1.0 - num) * (1.0 - num))); num = ((fadeOutPhase.ordinal() != 0) ? (1.0 - num * 2.0) : (1.0 - (1.0 - num) * (1.0 - num)));
TinyRect tinyRect2 = default(TinyRect); TinyRect tinyRect2 = default_(new TinyRect());
tinyRect2.Left = 80; tinyRect2.Left = 80;
tinyRect2.Right = 720; tinyRect2.Right = 720;
tinyRect2.Top = (int)(-160.0 + num * 160.0); tinyRect2.Top = (int)(-160.0 + num * 160.0);
@ -525,7 +528,7 @@ namespace WindowsPhoneSpeedyBlupi
} }
if (phase == Def.Phase.Init) if (phase == Def.Phase.Init)
{ {
double num = Math.Min((double)phaseTime / 20.0, 1.0); double num = Math_.Min((double)phaseTime / 20.0, 1.0);
double opacity; double opacity;
if (fadeOutPhase == Def.Phase.MainSetup) if (fadeOutPhase == Def.Phase.MainSetup)
{ {
@ -534,15 +537,16 @@ namespace WindowsPhoneSpeedyBlupi
} }
else if (fadeOutPhase == Def.Phase.None) else if (fadeOutPhase == Def.Phase.None)
{ {
num = 0.5 + num / 2.0; num = 0.5 + num / 2.0;
opacity = Math.Min(num * num, 1.0); opacity = Math_.Min(num * num, 1.0);
} }
else else
{ {
opacity = 1.0 - num; opacity = 1.0 - num;
num = 1.0 + num * 10.0; num = 1.0 + num * 10.0;
} }
TinyRect tinyRect3 = default(TinyRect); TinyRect tinyRect3 = default_(new TinyRect());
tinyRect3.Left = (int)(468.0 - 205.0 * num); tinyRect3.Left = (int)(468.0 - 205.0 * num);
tinyRect3.Right = (int)(468.0 + 205.0 * num); tinyRect3.Right = (int)(468.0 + 205.0 * num);
tinyRect3.Top = (int)(280.0 - 190.0 * num); tinyRect3.Top = (int)(280.0 - 190.0 * num);
@ -554,10 +558,10 @@ namespace WindowsPhoneSpeedyBlupi
{ {
if (fadeOutPhase == Def.Phase.Play) if (fadeOutPhase == Def.Phase.Play)
{ {
double num = Math.Min((double)phaseTime / 20.0, 1.0); double num = Math_.Min((double)phaseTime / 20.0, 1.0);
double opacity = 1.0 - num; double opacity = 1.0 - num;
num = 1.0 + num * 10.0; num = 1.0 + num * 10.0;
TinyRect tinyRect4 = default(TinyRect); TinyRect tinyRect4 = default_(new TinyRect());
tinyRect4.Left = (int)(418.0 - 205.0 * num); tinyRect4.Left = (int)(418.0 - 205.0 * num);
tinyRect4.Right = (int)(418.0 + 205.0 * num); tinyRect4.Right = (int)(418.0 + 205.0 * num);
tinyRect4.Top = (int)(190.0 - 190.0 * num); tinyRect4.Top = (int)(190.0 - 190.0 * num);
@ -567,9 +571,9 @@ namespace WindowsPhoneSpeedyBlupi
} }
else if (fadeOutPhase == Def.Phase.PlaySetup) else if (fadeOutPhase == Def.Phase.PlaySetup)
{ {
double num = Math.Min((double)phaseTime / 20.0, 1.0); double num = Math_.Min((double)phaseTime / 20.0, 1.0);
num *= num; num *= num;
TinyRect tinyRect5 = default(TinyRect); TinyRect tinyRect5 = default_(new TinyRect());
tinyRect5.Left = (int)(213.0 + 800.0 * num); tinyRect5.Left = (int)(213.0 + 800.0 * num);
tinyRect5.Right = (int)(623.0 + 800.0 * num); tinyRect5.Right = (int)(623.0 + 800.0 * num);
tinyRect5.Top = 0; tinyRect5.Top = 0;
@ -582,14 +586,14 @@ namespace WindowsPhoneSpeedyBlupi
double num; double num;
if (fadeOutPhase == Def.Phase.None) if (fadeOutPhase == Def.Phase.None)
{ {
num = Math.Min((double)phaseTime / 15.0, 1.0); num = Math_.Min((double)phaseTime / 15.0, 1.0);
} }
else else
{ {
num = Math.Min((double)phaseTime / 15.0, 1.0); num = Math_.Min((double)phaseTime / 15.0, 1.0);
num = 1.0 - num; num = 1.0 - num;
} }
TinyRect tinyRect6 = default(TinyRect); TinyRect tinyRect6 = default_(new TinyRect());
tinyRect6.Left = (int)(418.0 - 205.0 * num); tinyRect6.Left = (int)(418.0 - 205.0 * num);
tinyRect6.Right = (int)(418.0 + 205.0 * num); tinyRect6.Right = (int)(418.0 + 205.0 * num);
tinyRect6.Top = (int)(190.0 - 190.0 * num); tinyRect6.Top = (int)(190.0 - 190.0 * num);
@ -600,7 +604,7 @@ namespace WindowsPhoneSpeedyBlupi
{ {
rotation = (1.0 - num) * (1.0 - num) * 360.0 * 1.0; rotation = (1.0 - num) * (1.0 - num) * 360.0 * 1.0;
} }
if (rect.Width > 0 && rect.Height > 0) if (rect.Width() > 0 && rect.Height() > 0)
{ {
pixmap.DrawIcon(16, 0, rect, 1.0, rotation, false); pixmap.DrawIcon(16, 0, rect, 1.0, rotation, false);
} }
@ -608,7 +612,7 @@ namespace WindowsPhoneSpeedyBlupi
} }
if (phase == Def.Phase.MainSetup || phase == Def.Phase.PlaySetup) if (phase == Def.Phase.MainSetup || phase == Def.Phase.PlaySetup)
{ {
double num = Math.Min((double)phaseTime / 20.0, 1.0); double num = Math_.Min((double)phaseTime / 20.0, 1.0);
num = 1.0 - (1.0 - num) * (1.0 - num); num = 1.0 - (1.0 - num) * (1.0 - num);
double num2; double num2;
if (phaseTime < 20) if (phaseTime < 20)
@ -620,25 +624,25 @@ namespace WindowsPhoneSpeedyBlupi
{ {
num2 = 1.0 + ((double)phaseTime - 20.0) / 400.0; num2 = 1.0 + ((double)phaseTime - 20.0) / 400.0;
} }
if (fadeOutPhase != 0) if (fadeOutPhase.ordinal() != 0)
{ {
num = 1.0 - num; num = 1.0 - num;
num2 = 1.0 - num2; num2 = 1.0 - num2;
} }
TinyRect tinyRect7 = default(TinyRect); TinyRect tinyRect7 = default_(new TinyRect());
tinyRect7.Left = (int)(720.0 - 640.0 * num); tinyRect7.Left = (int)(720.0 - 640.0 * num);
tinyRect7.Right = (int)(1360.0 - 640.0 * num); tinyRect7.Right = (int)(1360.0 - 640.0 * num);
tinyRect7.Top = 0; tinyRect7.Top = 0;
tinyRect7.Bottom = 160; tinyRect7.Bottom = 160;
TinyRect rect = tinyRect7; TinyRect rect = tinyRect7;
pixmap.DrawIcon(15, 0, rect, num * num, false); pixmap.DrawIcon(15, 0, rect, num * num, false);
TinyRect tinyRect8 = default(TinyRect); TinyRect tinyRect8 = default_(new TinyRect());
tinyRect8.Left = 487; tinyRect8.Left = 487;
tinyRect8.Right = 713; tinyRect8.Right = 713;
tinyRect8.Top = 148; tinyRect8.Top = 148;
tinyRect8.Bottom = 374; tinyRect8.Bottom = 374;
TinyRect rect2 = tinyRect8; TinyRect rect2 = tinyRect8;
TinyRect tinyRect9 = default(TinyRect); TinyRect tinyRect9 = default_(new TinyRect());
tinyRect9.Left = 118; tinyRect9.Left = 118;
tinyRect9.Right = 570; tinyRect9.Right = 570;
tinyRect9.Top = 268; tinyRect9.Top = 268;
@ -651,8 +655,8 @@ namespace WindowsPhoneSpeedyBlupi
} }
if (phase == Def.Phase.Lost) if (phase == Def.Phase.Lost)
{ {
double num = Math.Min((double)phaseTime / 100.0, 1.0); double num = Math_.Min((double)phaseTime / 100.0, 1.0);
TinyRect tinyRect10 = default(TinyRect); TinyRect tinyRect10 = default_(new TinyRect());
tinyRect10.Left = (int)(418.0 - 205.0 * num); tinyRect10.Left = (int)(418.0 - 205.0 * num);
tinyRect10.Right = (int)(418.0 + 205.0 * num); tinyRect10.Right = (int)(418.0 + 205.0 * num);
tinyRect10.Top = (int)(238.0 - 190.0 * num); tinyRect10.Top = (int)(238.0 - 190.0 * num);
@ -663,15 +667,15 @@ namespace WindowsPhoneSpeedyBlupi
{ {
rotation = (1.0 - num) * (1.0 - num) * 360.0 * 6.0; rotation = (1.0 - num) * (1.0 - num) * 360.0 * 6.0;
} }
if (rect.Width > 0 && rect.Height > 0) if (rect.Width() > 0 && rect.Height() > 0)
{ {
pixmap.DrawIcon(16, 0, rect, 1.0, rotation, false); pixmap.DrawIcon(16, 0, rect, 1.0, rotation, false);
} }
} }
if (phase == Def.Phase.Win) if (phase == Def.Phase.Win)
{ {
double num = Math.Sin((double)phaseTime / 3.0) / 2.0 + 1.0; double num = Math_.Sin((double)phaseTime / 3.0) / 2.0 + 1.0;
TinyRect tinyRect11 = default(TinyRect); TinyRect tinyRect11 = default_(new TinyRect());
tinyRect11.Left = (int)(418.0 - 205.0 * num); tinyRect11.Left = (int)(418.0 - 205.0 * num);
tinyRect11.Right = (int)(418.0 + 205.0 * num); tinyRect11.Right = (int)(418.0 + 205.0 * num);
tinyRect11.Top = (int)(238.0 - 190.0 * num); tinyRect11.Top = (int)(238.0 - 190.0 * num);
@ -685,20 +689,20 @@ namespace WindowsPhoneSpeedyBlupi
{ {
if (phase == Def.Phase.Init) if (phase == Def.Phase.Init)
{ {
TinyRect drawBounds = pixmap.DrawBounds; TinyRect drawBounds = pixmap.DrawBounds();
int width = drawBounds.Width; int width = drawBounds.Width();
int height = drawBounds.Height; int height = drawBounds.Height();
TinyRect tinyRect = default(TinyRect); TinyRect tinyRect = default_(new TinyRect());
tinyRect.Left = 10; tinyRect.Left = 10;
tinyRect.Right = 260; tinyRect.Right = 260;
tinyRect.Top = height - 325; tinyRect.Top = height - 325;
tinyRect.Bottom = height - 10; tinyRect.Bottom = height - 10;
TinyRect rect = tinyRect; TinyRect rect = tinyRect;
pixmap.DrawIcon(14, 15, rect, 0.3, false); pixmap.DrawIcon(14, 15, rect, 0.3, false);
TinyRect tinyRect2 = default(TinyRect); TinyRect tinyRect2 = default_(new TinyRect());
tinyRect2.Left = width - 170; tinyRect2.Left = width - 170;
tinyRect2.Right = width - 10; tinyRect2.Right = width - 10;
tinyRect2.Top = height - ((IsTrialMode || IsRankingMode) ? 325 : 195); tinyRect2.Top = height - ((IsTrialMode() || IsRankingMode()) ? 325 : 195);
tinyRect2.Bottom = height - 10; tinyRect2.Bottom = height - 10;
rect = tinyRect2; rect = tinyRect2;
pixmap.DrawIcon(14, 15, rect, 0.3, false); pixmap.DrawIcon(14, 15, rect, 0.3, false);
@ -714,11 +718,11 @@ namespace WindowsPhoneSpeedyBlupi
DrawButtonGamerText(Def.ButtonGlygh.InitGamerC, 2); DrawButtonGamerText(Def.ButtonGlygh.InitGamerC, 2);
DrawTextUnderButton(Def.ButtonGlygh.InitPlay, MyResource.TX_BUTTON_PLAY); DrawTextUnderButton(Def.ButtonGlygh.InitPlay, MyResource.TX_BUTTON_PLAY);
DrawTextRightButton(Def.ButtonGlygh.InitSetup, MyResource.TX_BUTTON_SETUP); DrawTextRightButton(Def.ButtonGlygh.InitSetup, MyResource.TX_BUTTON_SETUP);
if (IsTrialMode) if (IsTrialMode())
{ {
DrawTextUnderButton(Def.ButtonGlygh.InitBuy, MyResource.TX_BUTTON_BUY); DrawTextUnderButton(Def.ButtonGlygh.InitBuy, MyResource.TX_BUTTON_BUY);
} }
if (IsRankingMode) if (IsRankingMode())
{ {
DrawTextUnderButton(Def.ButtonGlygh.InitRanking, MyResource.TX_BUTTON_RANKING); DrawTextUnderButton(Def.ButtonGlygh.InitRanking, MyResource.TX_BUTTON_RANKING);
} }
@ -750,13 +754,13 @@ namespace WindowsPhoneSpeedyBlupi
DrawTextRightButton(Def.ButtonGlygh.SetupAccel, MyResource.TX_BUTTON_SETUP_ACCEL); DrawTextRightButton(Def.ButtonGlygh.SetupAccel, MyResource.TX_BUTTON_SETUP_ACCEL);
if (phase == Def.Phase.MainSetup) if (phase == Def.Phase.MainSetup)
{ {
string text = string.Format(MyResource.LoadString(MyResource.TX_BUTTON_SETUP_RESET), new string((char)(65 + gameData.SelectedGamer), 1)); String text = string.Format(MyResource.LoadString(MyResource.TX_BUTTON_SETUP_RESET), new string((char)(65 + gameData.SelectedGamer()), 1));
DrawTextRightButton(Def.ButtonGlygh.SetupReset, text); DrawTextRightButton(Def.ButtonGlygh.SetupReset, text);
} }
} }
if (phase == Def.Phase.Trial) if (phase == Def.Phase.Trial)
{ {
TinyPoint tinyPoint = default(TinyPoint); TinyPoint tinyPoint = default_(new TinyPoint());
tinyPoint.X = 360; tinyPoint.X = 360;
tinyPoint.Y = 50; tinyPoint.Y = 50;
TinyPoint pos = tinyPoint; TinyPoint pos = tinyPoint;
@ -783,31 +787,32 @@ namespace WindowsPhoneSpeedyBlupi
private void DrawButtonGamerText(Def.ButtonGlygh glyph, int gamer) private void DrawButtonGamerText(Def.ButtonGlygh glyph, int gamer)
{ {
TinyRect buttonRect = inputPad.GetButtonRect(glyph); TinyRect buttonRect = inputPad.GetButtonRect(glyph);
int nbVies;
int mainDoors; GamerInfo gamerInfo = gameData.GetGamerInfo(gamer);
int secondaryDoors; int nbVies = gamerInfo.nbVies;
gameData.GetGamerInfo(gamer, out nbVies, out mainDoors, out secondaryDoors); int mainDoors = gamerInfo.mainDoors;
TinyPoint tinyPoint = default(TinyPoint); int secondaryDoors = gamerInfo.secondaryDoors;
tinyPoint.X = buttonRect.Right + 5 - pixmap.Origin.X; TinyPoint tinyPoint = default_(new TinyPoint());
tinyPoint.Y = buttonRect.Top + 3 - pixmap.Origin.Y; tinyPoint.X = buttonRect.Right + 5 - pixmap.Origin().X;
tinyPoint.Y = buttonRect.Top + 3 - pixmap.Origin().Y;
TinyPoint pos = tinyPoint; TinyPoint pos = tinyPoint;
string text = string.Format(MyResource.LoadString(MyResource.TX_GAMER_TITLE), new string((char)(65 + gamer), 1)); String text = string.Format(MyResource.LoadString(MyResource.TX_GAMER_TITLE), new string((char)(65 + gamer), 1));
Text.DrawText(pixmap, pos, text, 0.7); Text.DrawText(pixmap, pos, text, 0.7);
TinyPoint tinyPoint2 = default(TinyPoint); TinyPoint tinyPoint2 = default_(new TinyPoint());
tinyPoint2.X = buttonRect.Right + 5 - pixmap.Origin.X; tinyPoint2.X = buttonRect.Right + 5 - pixmap.Origin().X;
tinyPoint2.Y = buttonRect.Top + 25 - pixmap.Origin.Y; tinyPoint2.Y = buttonRect.Top + 25 - pixmap.Origin().Y;
pos = tinyPoint2; pos = tinyPoint2;
text = string.Format(MyResource.LoadString(MyResource.TX_GAMER_MDOORS), mainDoors); text = string.Format(MyResource.LoadString(MyResource.TX_GAMER_MDOORS), mainDoors);
Text.DrawText(pixmap, pos, text, 0.45); Text.DrawText(pixmap, pos, text, 0.45);
TinyPoint tinyPoint3 = default(TinyPoint); TinyPoint tinyPoint3 = default_(new TinyPoint());
tinyPoint3.X = buttonRect.Right + 5 - pixmap.Origin.X; tinyPoint3.X = buttonRect.Right + 5 - pixmap.Origin().X;
tinyPoint3.Y = buttonRect.Top + 39 - pixmap.Origin.Y; tinyPoint3.Y = buttonRect.Top + 39 - pixmap.Origin().Y;
pos = tinyPoint3; pos = tinyPoint3;
text = string.Format(MyResource.LoadString(MyResource.TX_GAMER_SDOORS), secondaryDoors); text = string.Format(MyResource.LoadString(MyResource.TX_GAMER_SDOORS), secondaryDoors);
Text.DrawText(pixmap, pos, text, 0.45); Text.DrawText(pixmap, pos, text, 0.45);
TinyPoint tinyPoint4 = default(TinyPoint); TinyPoint tinyPoint4 = default_(new TinyPoint());
tinyPoint4.X = buttonRect.Right + 5 - pixmap.Origin.X; tinyPoint4.X = buttonRect.Right + 5 - pixmap.Origin().X;
tinyPoint4.Y = buttonRect.Top + 53 - pixmap.Origin.Y; tinyPoint4.Y = buttonRect.Top + 53 - pixmap.Origin().Y;
pos = tinyPoint4; pos = tinyPoint4;
text = string.Format(MyResource.LoadString(MyResource.TX_GAMER_LIFES), nbVies); text = string.Format(MyResource.LoadString(MyResource.TX_GAMER_LIFES), nbVies);
Text.DrawText(pixmap, pos, text, 0.45); Text.DrawText(pixmap, pos, text, 0.45);
@ -818,15 +823,15 @@ namespace WindowsPhoneSpeedyBlupi
DrawTextRightButton(glyph, MyResource.LoadString(res)); DrawTextRightButton(glyph, MyResource.LoadString(res));
} }
private void DrawTextRightButton(Def.ButtonGlygh glyph, string text) private void DrawTextRightButton(Def.ButtonGlygh glyph, String text)
{ {
TinyRect buttonRect = inputPad.GetButtonRect(glyph); TinyRect buttonRect = inputPad.GetButtonRect(glyph);
string[] array = text.Split('\n'); String[] array = text.split("\n");
if (array.Length == 2) if (array.length == 2)
{ {
TinyPoint tinyPoint = default(TinyPoint); TinyPoint tinyPoint = default_(new TinyPoint());
tinyPoint.X = buttonRect.Right + 10 - pixmap.Origin.X; tinyPoint.X = buttonRect.Right + 10 - pixmap.Origin().X;
tinyPoint.Y = (buttonRect.Top + buttonRect.Bottom) / 2 - 20 - pixmap.Origin.Y; tinyPoint.Y = (buttonRect.Top + buttonRect.Bottom) / 2 - 20 - pixmap.Origin().Y;
TinyPoint pos = tinyPoint; TinyPoint pos = tinyPoint;
Text.DrawText(pixmap, pos, array[0], 0.7); Text.DrawText(pixmap, pos, array[0], 0.7);
pos.Y += 24; pos.Y += 24;
@ -834,9 +839,9 @@ namespace WindowsPhoneSpeedyBlupi
} }
else else
{ {
TinyPoint tinyPoint2 = default(TinyPoint); TinyPoint tinyPoint2 = default_(new TinyPoint());
tinyPoint2.X = buttonRect.Right + 10 - pixmap.Origin.X; tinyPoint2.X = buttonRect.Right + 10 - pixmap.Origin().X;
tinyPoint2.Y = (buttonRect.Top + buttonRect.Bottom) / 2 - 8 - pixmap.Origin.Y; tinyPoint2.Y = (buttonRect.Top + buttonRect.Bottom) / 2 - 8 - pixmap.Origin().Y;
TinyPoint pos2 = tinyPoint2; TinyPoint pos2 = tinyPoint2;
Text.DrawText(pixmap, pos2, text, 0.7); Text.DrawText(pixmap, pos2, text, 0.7);
} }
@ -845,11 +850,11 @@ namespace WindowsPhoneSpeedyBlupi
private void DrawTextUnderButton(Def.ButtonGlygh glyph, int res) private void DrawTextUnderButton(Def.ButtonGlygh glyph, int res)
{ {
TinyRect buttonRect = inputPad.GetButtonRect(glyph); TinyRect buttonRect = inputPad.GetButtonRect(glyph);
TinyPoint tinyPoint = default(TinyPoint); TinyPoint tinyPoint = default_(new TinyPoint());
tinyPoint.X = (buttonRect.Left + buttonRect.Right) / 2 - pixmap.Origin.X; tinyPoint.X = (buttonRect.Left + buttonRect.Right) / 2 - pixmap.Origin().X;
tinyPoint.Y = buttonRect.Bottom + 2 - pixmap.Origin.Y; tinyPoint.Y = buttonRect.Bottom + 2 - pixmap.Origin().Y;
TinyPoint pos = tinyPoint; TinyPoint pos = tinyPoint;
string text = MyResource.LoadString(res); String text = MyResource.LoadString(res);
Text.DrawTextCenter(pixmap, pos, text, 0.7); Text.DrawTextCenter(pixmap, pos, text, 0.7);
} }
@ -859,7 +864,7 @@ namespace WindowsPhoneSpeedyBlupi
{ {
return; return;
} }
for (int i = 0; i < waitTable.Length; i++) for (int i = 0; i < waitTable.length; i++)
{ {
if (waitProgress <= waitTable[i * 2]) if (waitProgress <= waitTable[i * 2])
{ {
@ -872,16 +877,16 @@ namespace WindowsPhoneSpeedyBlupi
private void DrawDebug() private void DrawDebug()
{ {
TinyPoint tinyPoint = default(TinyPoint); TinyPoint tinyPoint = default_(new TinyPoint());
tinyPoint.X = 10; tinyPoint.X = 10;
tinyPoint.Y = 20; tinyPoint.Y = 20;
TinyPoint pos = tinyPoint; TinyPoint pos = tinyPoint;
Text.DrawText(pixmap, pos, inputPad.TotalTouch.ToString(), 1.0); Text.DrawText(pixmap, pos, Integer.valueOf(inputPad.TotalTouch()).toString(), 1.0);
} }
private void SetGamer(int gamer) private void SetGamer(int gamer)
{ {
gameData.SelectedGamer = gamer; gameData.setSelectedGamer(gamer);
gameData.Write(); gameData.Write();
} }
@ -930,31 +935,31 @@ namespace WindowsPhoneSpeedyBlupi
decor.StopSound(); decor.StopSound();
switch (this.phase) switch (this.phase)
{ {
case Def.Phase.Init: case Init:
pixmap.BackgroundCache("init"); pixmap.BackgroundCache("init");
break; break;
case Def.Phase.Pause: case Pause:
case Def.Phase.Resume: case Resume:
pixmap.BackgroundCache("pause"); pixmap.BackgroundCache("pause");
break; break;
case Def.Phase.Lost: case Lost:
pixmap.BackgroundCache("lost"); pixmap.BackgroundCache("lost");
break; break;
case Def.Phase.Win: case Win:
pixmap.BackgroundCache("win"); pixmap.BackgroundCache("win");
break; break;
case Def.Phase.MainSetup: case MainSetup:
case Def.Phase.PlaySetup: case PlaySetup:
pixmap.BackgroundCache("setup"); pixmap.BackgroundCache("setup");
break; break;
case Def.Phase.Trial: case Trial:
pixmap.BackgroundCache("trial"); pixmap.BackgroundCache("trial");
break; break;
case Def.Phase.Ranking: case Ranking:
pixmap.BackgroundCache("pause"); pixmap.BackgroundCache("pause");
break; break;
case Def.Phase.Play: case Play:
decor.DrawBounds = pixmap.DrawBounds; decor.setDrawBounds(pixmap.DrawBounds());
break; break;
} }
if (this.phase == Def.Phase.Play && mission > 0) if (this.phase == Def.Phase.Play && mission > 0)
@ -965,7 +970,7 @@ namespace WindowsPhoneSpeedyBlupi
private void MemorizeGamerProgress() private void MemorizeGamerProgress()
{ {
gameData.NbVies = decor.GetNbVies(); gameData.setNbVies(decor.GetNbVies());
decor.MemorizeDoors(gameData); decor.MemorizeDoors(gameData);
gameData.Write(); gameData.Write();
} }
@ -978,6 +983,5 @@ namespace WindowsPhoneSpeedyBlupi
{ {
this.graphics.ToggleFullScreen(); this.graphics.ToggleFullScreen();
} }
public bool IsFullScreen() { return this.graphics.IsFullScreen; } public boolean IsFullScreen() { return this.graphics.IsFullScreen(); }
} }
}

View File

@ -1,131 +1,125 @@
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439 package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
// WindowsPhoneSpeedyBlupi.GameData
using System;
using WindowsPhoneSpeedyBlupi;
namespace WindowsPhoneSpeedyBlupi // WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
{ // WindowsPhoneSpeedyBlupi.GameData
import com.openeggbert.jdotnet.System.*;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.readonly;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.namespace;
@namespace(name = "WindowsPhoneSpeedyBlupi")
public class GameData public class GameData
{ {
private static readonly int HeaderLength = 10; private static @readonly final int HeaderLength = 10;
private static readonly int DoorsLength = 200; private static @readonly final int DoorsLength = 200;
private static readonly int GamerLength = 10 + DoorsLength; private static @readonly final int GamerLength = 10 + DoorsLength;
private static readonly int MaxGamer = 3; private static @readonly final int MaxGamer = 3;
private static readonly int TotalLength = HeaderLength + GamerLength * MaxGamer; private static @readonly final int TotalLength = HeaderLength + GamerLength * MaxGamer;
private readonly byte[] data; private @readonly final byte[] data;
public int SelectedGamer public int SelectedGamer() {
{ return getSelectedGamer();
get }
{ public int getSelectedGamer() {
return data[2]; return data[2];
}
set
{
data[2] = (byte)value;
}
} }
public bool Sounds public void setSelectedGamer(int value) {
{ data[2] = (byte) value;
get
{
return data[3] == 1;
}
set
{
data[3] = (byte)(value ? 1u : 0u);
}
} }
public bool JumpRight
{ public boolean Sounds() {
get return isSounds();
{ }
return data[4] == 1; public boolean isSounds() {
} return data[3] == 1;
set
{
data[4] = (byte)(value ? 1u : 0u);
}
} }
public bool AutoZoom public void setSounds(boolean value) {
{ data[3] = (byte) (value ? 1 : 0);
get }
{ public boolean JumpRight() {
return data[5] == 1; return isJumpRight();
} }
set public boolean isJumpRight() {
{ return data[4] == 1;
data[5] = (byte)(value ? 1u : 0u);
}
} }
public bool AccelActive public void setJumpRight(boolean value) {
{ data[4] = (byte) (value ? 1 : 0);
get
{
return data[6] == 1;
}
set
{
data[6] = (byte)(value ? 1u : 0u);
}
} }
public double AccelSensitivity public boolean AutoZoom() {
{ return isAutoZoom();
get }
{ public boolean isAutoZoom() {
return (double)(int)data[7] / 100.0; return data[5] == 1;
}
set
{
value = Math.Max(value, 0.0);
value = Math.Min(value, 1.0);
data[7] = (byte)(value * 100.0);
}
} }
public int NbVies public void setAutoZoom(boolean value) {
{ data[5] = (byte) (value ? 1 : 0);
get }
{ public boolean AccelActive() {
return data[GamerOffset]; return isAccelActive();
} }
set public boolean isAccelActive() {
{ return data[6] == 1;
data[GamerOffset] = (byte)value;
}
} }
public int LastWorld public void setAccelActive(boolean value) {
{ data[6] = (byte) (value ? 1 : 0);
get
{
return data[GamerOffset + 1];
}
set
{
data[GamerOffset + 1] = (byte)value;
}
} }
private int GamerOffset public double AccelSensitivity() {
{ return getAccelSensitivity();
get }
{ public double getAccelSensitivity() {
return GetGamerOffset(SelectedGamer); return (double) (int) data[7] / 100.0;
}
} }
public void setAccelSensitivity(double value) {
value = Math_.Max(value, 0.0);
value = Math_.Min(value, 1.0);
data[7] = (byte) (value * 100.0);
}
public int NbVies() {
return getNbVies();
}
public int getNbVies() {
return data[getGamerOffset()];
}
public void setNbVies(int value) {
data[getGamerOffset()] = (byte) value;
}
public int LastWorld() {
return getLastWorld();
}
public int getLastWorld() {
return data[getGamerOffset() + 1];
}
public void setLastWorld(int value) {
data[getGamerOffset() + 1] = (byte) value;
}
private int getGamerOffset() {
return GetGamerOffset(getSelectedGamer());
}
private int getGamerOffset(int gamer) {
return GetGamerOffset(gamer);
}
public GameData() public GameData()
{ {
data = new byte[TotalLength]; data = new byte[TotalLength];
@ -144,14 +138,14 @@ namespace WindowsPhoneSpeedyBlupi
public void Reset() public void Reset()
{ {
Initialize(SelectedGamer); Initialize(getSelectedGamer());
} }
public void GetDoors(int[] doors) public void GetDoors(int[] doors)
{ {
for (int i = 0; i < DoorsLength; i++) for (int i = 0; i < DoorsLength; i++)
{ {
doors[i] = data[GamerOffset + 10 + i]; doors[i] = data[getGamerOffset() + 10 + i];
} }
} }
@ -159,29 +153,41 @@ namespace WindowsPhoneSpeedyBlupi
{ {
for (int i = 0; i < DoorsLength; i++) for (int i = 0; i < DoorsLength; i++)
{ {
data[GamerOffset + 10 + i] = (byte)doors[i]; data[getGamerOffset() + 10 + i] = (byte)doors[i];
} }
} }
public void GetGamerInfo(int gamer, out int nbVies, out int mainDoors, out int secondaryDoors) static class GamerInfo {
{
nbVies = data[GetGamerOffset(gamer)]; public int nbVies;
secondaryDoors = 0; public int mainDoors;
for (int i = 0; i < 180; i++) public int secondaryDoors;
{
if (data[GetGamerOffset(gamer) + 10 + i] == 1) public GamerInfo(int nbVies, int mainDoors, int secondaryDoors) {
{ this.nbVies = nbVies;
this.mainDoors = mainDoors;
this.secondaryDoors = secondaryDoors;
}
}
public GamerInfo GetGamerInfo(int gamer/*, @Out int nbVies, @Out int mainDoors, @Out int secondaryDoors*/) {
int nbVies = data[getGamerOffset(gamer)];
int secondaryDoors = 0;
for (int i = 0; i < 180; i++) {
if (data[getGamerOffset(gamer) + 10 + i] == 1) {
secondaryDoors++; secondaryDoors++;
} }
} }
mainDoors = 0;
for (int j = 180; j < 200; j++) int mainDoors = 0;
{ for (int j = 180; j < 200; j++) {
if (data[GetGamerOffset(gamer) + 10 + j] == 1) if (data[getGamerOffset(gamer) + 10 + j] == 1) {
{
mainDoors++; mainDoors++;
} }
} }
return new GamerInfo(nbVies, mainDoors, secondaryDoors);
} }
private void Initialize() private void Initialize()
@ -194,7 +200,7 @@ namespace WindowsPhoneSpeedyBlupi
data[5] = 1; data[5] = 1;
data[6] = 0; data[6] = 0;
data[7] = 50; data[7] = 50;
SelectedGamer = 0; setSelectedGamer(0);
for (int i = 0; i < MaxGamer; i++) for (int i = 0; i < MaxGamer; i++)
{ {
Initialize(i); Initialize(i);
@ -217,4 +223,3 @@ namespace WindowsPhoneSpeedyBlupi
} }
} }
}

View File

@ -1,17 +1,22 @@
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439 package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
// WindowsPhoneSpeedyBlupi.Jauge
using Microsoft.Xna.Framework.Media; // WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
using WindowsPhoneSpeedyBlupi; // WindowsPhoneSpeedyBlupi.Jauge
import static com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.default_.default_;
import com.openeggbert.jxna.Microsoft.Xna.Framework.Media.*;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.namespace;
@namespace(name = "WindowsPhoneSpeedyBlupi")
namespace WindowsPhoneSpeedyBlupi
{
public class Jauge public class Jauge
{ {
private Pixmap m_pixmap; private Pixmap m_pixmap;
private Sound m_sound; private Sound m_sound;
private bool m_bHide; private boolean m_bHide;
private TinyPoint m_pos; private TinyPoint m_pos;
@ -21,24 +26,21 @@ namespace WindowsPhoneSpeedyBlupi
private int m_level; private int m_level;
private bool m_bMinimizeRedraw; private boolean m_bMinimizeRedraw;
private bool m_bRedraw; private boolean m_bRedraw;
private double m_zoom; private double m_zoom;
public double Zoom public double getZoom() {
{ return m_zoom;
get
{
return m_zoom;
}
set
{
m_zoom = value;
}
} }
public void setZoom(double value) {
m_zoom = value;
}
public Jauge() public Jauge()
{ {
m_mode = 0; m_mode = 0;
@ -48,7 +50,7 @@ namespace WindowsPhoneSpeedyBlupi
m_zoom = 1.0; m_zoom = 1.0;
} }
public bool Create(Pixmap pixmap, Sound sound, TinyPoint pos, int mode, bool bMinimizeRedraw) public boolean Create(Pixmap pixmap, Sound sound, TinyPoint pos, int mode, boolean bMinimizeRedraw)
{ {
m_pixmap = pixmap; m_pixmap = pixmap;
m_sound = sound; m_sound = sound;
@ -65,7 +67,7 @@ namespace WindowsPhoneSpeedyBlupi
public void Draw() public void Draw()
{ {
TinyRect rect = default(TinyRect); TinyRect rect = default_(new TinyRect());
if (m_bMinimizeRedraw && !m_bRedraw) if (m_bMinimizeRedraw && !m_bRedraw)
{ {
return; return;
@ -131,12 +133,12 @@ namespace WindowsPhoneSpeedyBlupi
m_mode = mode; m_mode = mode;
} }
public bool GetHide() public boolean GetHide()
{ {
return m_bHide; return m_bHide;
} }
public void SetHide(bool bHide) public void SetHide(boolean bHide)
{ {
if (m_bHide != bHide) if (m_bHide != bHide)
{ {
@ -156,4 +158,3 @@ namespace WindowsPhoneSpeedyBlupi
} }
} }
}

View File

@ -1,13 +1,8 @@
using System; package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
using System.Collections.Generic;
using System.Diagnostics; import com.openeggbert.jdotnet.System.Diagnostics.Debug;
using System.Linq; import com.openeggbert.jxna.Microsoft.Xna.Framework.PlayerIndex;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
namespace WindowsPhoneSpeedyBlupi
{
public class MarketPlace public class MarketPlace
{ {
public static void Show(PlayerIndex playerIndex) public static void Show(PlayerIndex playerIndex)
@ -16,4 +11,3 @@ namespace WindowsPhoneSpeedyBlupi
Debug.Write("The Market Place should be shown."); Debug.Write("The Market Place should be shown.");
} }
} }
}

View File

@ -1,40 +1,49 @@
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439 package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
// WindowsPhoneSpeedyBlupi.Misc // WindowsPhoneSpeedyBlupi.Misc
using System; import com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi.Def.KeyboardPress;
using Microsoft.Xna.Framework; import static com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.default_.default_;
using WindowsPhoneSpeedyBlupi; import com.openeggbert.jdotnet.System.*;
using static WindowsPhoneSpeedyBlupi.Def; import com.openeggbert.jxna.Microsoft.Xna.Framework.*;
import com.openeggbert.jxna.Microsoft.Xna.Framework.Rectangle;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.out;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.namespace;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.static_;
namespace WindowsPhoneSpeedyBlupi @namespace(name = "WindowsPhoneSpeedyBlupi")
{ @static_
public static class Misc public class Misc
{ {
private Misc() {
//Not meant to be instantiated.
}
public static Rectangle RotateAdjust(Rectangle rect, double angle) public static Rectangle RotateAdjust(Rectangle rect, double angle)
{ {
TinyPoint tinyPoint = default(TinyPoint); TinyPoint tinyPoint = default_(new TinyPoint());
tinyPoint.X = rect.Width / 2; tinyPoint.X = rect.Width / 2;
tinyPoint.Y = rect.Height / 2; tinyPoint.Y = rect.Height / 2;
TinyPoint p = tinyPoint; TinyPoint p = tinyPoint;
TinyPoint tinyPoint2 = RotatePointRad(angle, p); TinyPoint tinyPoint2 = RotatePointRad(angle, p);
int num = tinyPoint2.X - p.X; int num = tinyPoint2.X - p.X;
int num2 = tinyPoint2.Y - p.Y; int num2 = tinyPoint2.Y - p.Y;
return new Rectangle(rect.Left - num, rect.Top - num2, rect.Width, rect.Height); return new Rectangle(rect.Left() - num, rect.Top() - num2, rect.Width, rect.Height);
} }
public static TinyPoint RotatePointRad(double angle, TinyPoint p) public static TinyPoint RotatePointRad(double angle, TinyPoint p)
{ {
return RotatePointRad(default(TinyPoint), angle, p); return RotatePointRad(default_(new TinyPoint()), angle, p);
} }
public static TinyPoint RotatePointRad(TinyPoint center, double angle, TinyPoint p) public static TinyPoint RotatePointRad(TinyPoint center, double angle, TinyPoint p)
{ {
TinyPoint tinyPoint = default(TinyPoint); TinyPoint tinyPoint = default_(new TinyPoint());
TinyPoint result = default(TinyPoint); TinyPoint result = default_(new TinyPoint());
tinyPoint.X = p.X - center.X; tinyPoint.X = p.X - center.X;
tinyPoint.Y = p.Y - center.Y; tinyPoint.Y = p.Y - center.Y;
double num = Math.Sin(angle); double num = Math_.Sin(angle);
double num2 = Math.Cos(angle); double num2 = Math_.Cos(angle);
result.X = (int)((double)tinyPoint.X * num2 - (double)tinyPoint.Y * num); result.X = (int)((double)tinyPoint.X * num2 - (double)tinyPoint.Y * num);
result.Y = (int)((double)tinyPoint.X * num + (double)tinyPoint.Y * num2); result.Y = (int)((double)tinyPoint.X * num + (double)tinyPoint.Y * num2);
result.X += center.X; result.X += center.X;
@ -44,18 +53,18 @@ namespace WindowsPhoneSpeedyBlupi
public static double DegToRad(double angle) public static double DegToRad(double angle)
{ {
return angle * Math.PI / 180.0; return angle * Math_.PI / 180.0;
} }
public static int Approch(int actual, int final, int step) public static int Approch(int actual, int finalValue, int step)
{ {
if (actual < final) if (actual < finalValue)
{ {
actual = Math.Min(actual + step, final); actual = Math_.Min(actual + step, finalValue);
} }
else if (actual > final) else if (actual > finalValue)
{ {
actual = Math.Max(actual - step, final); actual = Math_.Max(actual - step, finalValue);
} }
return actual; return actual;
} }
@ -64,18 +73,18 @@ namespace WindowsPhoneSpeedyBlupi
{ {
if (speed > 0.0) if (speed > 0.0)
{ {
return Math.Max((int)(speed * (double)max), 1); return Math_.Max((int)(speed * (double)max), 1);
} }
if (speed < 0.0) if (speed < 0.0)
{ {
return Math.Min((int)(speed * (double)max), -1); return Math_.Min((int)(speed * (double)max), -1);
} }
return 0; return 0;
} }
public static TinyRect Inflate(TinyRect rect, int value) public static TinyRect Inflate(TinyRect rect, int value)
{ {
TinyRect result = default(TinyRect); TinyRect result = default_(new TinyRect());
result.Left = rect.Left - value; result.Left = rect.Left - value;
result.Right = rect.Right + value; result.Right = rect.Right + value;
result.Top = rect.Top - value; result.Top = rect.Top - value;
@ -83,7 +92,7 @@ namespace WindowsPhoneSpeedyBlupi
return result; return result;
} }
public static bool IsInside(TinyRect rect, TinyPoint p) public static boolean IsInside(TinyRect rect, TinyPoint p)
{ {
if (p.X >= rect.Left && p.X <= rect.Right && p.Y >= rect.Top) if (p.X >= rect.Left && p.X <= rect.Right && p.Y >= rect.Top)
{ {
@ -92,27 +101,28 @@ namespace WindowsPhoneSpeedyBlupi
return false; return false;
} }
public static bool IntersectRect(out TinyRect dst, TinyRect src1, TinyRect src2) public static boolean IntersectRect(@out TinyRect dst, TinyRect src1, TinyRect src2)
{ {
dst = default(TinyRect); dst = default_(dst);
dst.Left = Math.Max(src1.Left, src2.Left); dst.Left = Math_.Max(src1.Left, src2.Left);
dst.Right = Math.Min(src1.Right, src2.Right); dst.Right = Math_.Min(src1.Right, src2.Right);
dst.Top = Math.Max(src1.Top, src2.Top); dst.Top = Math_.Max(src1.Top, src2.Top);
dst.Bottom = Math.Min(src1.Bottom, src2.Bottom); dst.Bottom = Math_.Min(src1.Bottom, src2.Bottom);
return !IsRectEmpty(dst); return !IsRectEmpty(dst);
} }
public static bool UnionRect(out TinyRect dst, TinyRect src1, TinyRect src2) public static boolean UnionRect(@out TinyRect dst, TinyRect src1, TinyRect src2)
{ {
dst = default(TinyRect);
dst.Left = Math.Min(src1.Left, src2.Left); dst = default_(dst);
dst.Right = Math.Max(src1.Right, src2.Right); dst.Left = Math_.Min(src1.Left, src2.Left);
dst.Top = Math.Min(src1.Top, src2.Top); dst.Right = Math_.Max(src1.Right, src2.Right);
dst.Bottom = Math.Max(src1.Bottom, src2.Bottom); dst.Top = Math_.Min(src1.Top, src2.Top);
dst.Bottom = Math_.Max(src1.Bottom, src2.Bottom);
return !IsRectEmpty(dst); return !IsRectEmpty(dst);
} }
private static bool IsRectEmpty(TinyRect rect) private static boolean IsRectEmpty(TinyRect rect)
{ {
if (rect.Left < rect.Right) if (rect.Left < rect.Right)
{ {
@ -133,24 +143,23 @@ namespace WindowsPhoneSpeedyBlupi
case 6: return KeyboardPress.Space; case 6: return KeyboardPress.Space;
case 7: return KeyboardPress.Escape; case 7: return KeyboardPress.Escape;
case 8: return KeyboardPress.Pause; case 8: return KeyboardPress.Pause;
default: throw new Exception("Unsupported number for KeyboardPress: " + i); default: throw new Exception_("Unsupported number for KeyboardPress: " + i);
} }
} }
public static int keyboardPressToInt(KeyboardPress kp) public static int keyboardPressToInt(KeyboardPress kp)
{ {
switch (kp) switch (kp)
{ {
case KeyboardPress.None: return 0; case None: return 0;
case KeyboardPress.Up: return 1; case Up: return 1;
case KeyboardPress.Right: return 2; case Right: return 2;
case KeyboardPress.Down: return 3; case Down: return 3;
case KeyboardPress.Left: return 4; case Left: return 4;
case KeyboardPress.LeftControl: return 5; case LeftControl: return 5;
case KeyboardPress.Space: return 6; case Space: return 6;
case KeyboardPress.Escape: return 7; case Escape: return 7;
case KeyboardPress.Pause: return 8; case Pause: return 8;
default: throw new Exception("Unsupported KeyboardPress: " + kp); default: throw new Exception_("Unsupported KeyboardPress: " + kp);
} }
} }
} }
}

View File

@ -1,18 +1,26 @@
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439 package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
// WindowsPhoneSpeedyBlupi.Pixmap
using System; // WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
using Microsoft.Xna.Framework; // WindowsPhoneSpeedyBlupi.Pixmap
using Microsoft.Xna.Framework.Graphics; import static com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.default_.default_;
using WindowsPhoneSpeedyBlupi; import com.openeggbert.jdotnet.System.*;
using static System.Net.Mime.MediaTypeNames; import com.openeggbert.jxna.Microsoft.Xna.Framework.Color;
import com.openeggbert.jxna.Microsoft.Xna.Framework.GraphicsDeviceManager;
import com.openeggbert.jxna.Microsoft.Xna.Framework.Graphics.*;
import com.openeggbert.jxna.Microsoft.Xna.Framework.Rectangle;
import com.openeggbert.jxna.Microsoft.Xna.Framework.Vector2;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.namespace;
//import static com.openeggbert.jdotnet.System.Net.Mime.MediaTypeNames.*;
@namespace(name = "WindowsPhoneSpeedyBlupi")
namespace WindowsPhoneSpeedyBlupi
{
public class Pixmap public class Pixmap
{ {
private readonly Game1 game1; private final Game1 game1;
private readonly GraphicsDeviceManager graphics; private final GraphicsDeviceManager graphics;
private double zoom; private double zoom;
@ -58,13 +66,14 @@ namespace WindowsPhoneSpeedyBlupi
private SpriteEffects effect; private SpriteEffects effect;
public TinyRect DrawBounds public TinyRect DrawBounds() {return getDrawBounds();}
public TinyRect getDrawBounds()
{ {
get
{ {
TinyRect result = default(TinyRect); TinyRect result = default_(new TinyRect());
double num = graphics.GraphicsDevice.Viewport.Width; double num = graphics.GraphicsDevice().Viewport().Width();
double num2 = graphics.GraphicsDevice.Viewport.Height; double num2 = graphics.GraphicsDevice().Viewport().Height();
if (num != 0.0 && num2 != 0.0) if (num != 0.0 && num2 != 0.0)
{ {
double num3; double num3;
@ -88,11 +97,11 @@ namespace WindowsPhoneSpeedyBlupi
} }
} }
public TinyPoint Origin public TinyPoint Origin()
{ {
get
{ {
TinyPoint result = default(TinyPoint); TinyPoint result = default_(new TinyPoint());
result.X = (int)originX; result.X = (int)originX;
result.Y = (int)originY; result.Y = (int)originY;
return result; return result;
@ -109,7 +118,7 @@ namespace WindowsPhoneSpeedyBlupi
public TinyPoint HotSpotToHud(TinyPoint pos) public TinyPoint HotSpotToHud(TinyPoint pos)
{ {
TinyPoint result = default(TinyPoint); TinyPoint result = default_(new TinyPoint());
result.X = (int)((double)(pos.X - (int)hotSpotX) / hotSpotZoom) + (int)hotSpotX - (int)originX; result.X = (int)((double)(pos.X - (int)hotSpotX) / hotSpotZoom) + (int)hotSpotX - (int)originX;
result.Y = (int)((double)(pos.Y - (int)hotSpotY) / hotSpotZoom) + (int)hotSpotY - (int)originY; result.Y = (int)((double)(pos.Y - (int)hotSpotY) / hotSpotZoom) + (int)hotSpotY - (int)originY;
return result; return result;
@ -122,166 +131,166 @@ namespace WindowsPhoneSpeedyBlupi
hotSpotY = y; hotSpotY = y;
} }
public void DrawInputButton(TinyRect rect, Def.ButtonGlygh glyph, bool pressed, bool selected) public void DrawInputButton(TinyRect rect, Def.ButtonGlygh glyph, boolean pressed, boolean selected)
{ {
switch (glyph) switch (glyph)
{ {
case Def.ButtonGlygh.InitGamerA: case InitGamerA:
DrawIcon(14, selected ? 16 : 4, rect, pressed ? 0.8 : 1.0, false); DrawIcon(14, selected ? 16 : 4, rect, pressed ? 0.8 : 1.0, false);
break; break;
case Def.ButtonGlygh.InitGamerB: case InitGamerB:
DrawIcon(14, selected ? 17 : 5, rect, pressed ? 0.8 : 1.0, false); DrawIcon(14, selected ? 17 : 5, rect, pressed ? 0.8 : 1.0, false);
break; break;
case Def.ButtonGlygh.InitGamerC: case InitGamerC:
DrawIcon(14, selected ? 18 : 6, rect, pressed ? 0.8 : 1.0, false); DrawIcon(14, selected ? 18 : 6, rect, pressed ? 0.8 : 1.0, false);
break; break;
case Def.ButtonGlygh.InitSetup: case InitSetup:
case Def.ButtonGlygh.PauseSetup: case PauseSetup:
DrawIcon(14, 19, rect, pressed ? 0.8 : 1.0, false); DrawIcon(14, 19, rect, pressed ? 0.8 : 1.0, false);
break; break;
case Def.ButtonGlygh.InitPlay: case InitPlay:
DrawIcon(14, 7, rect, pressed ? 0.8 : 1.0, false); DrawIcon(14, 7, rect, pressed ? 0.8 : 1.0, false);
break; break;
case Def.ButtonGlygh.PauseMenu: case PauseMenu:
case Def.ButtonGlygh.ResumeMenu: case ResumeMenu:
DrawIcon(14, 11, rect, pressed ? 0.8 : 1.0, false); DrawIcon(14, 11, rect, pressed ? 0.8 : 1.0, false);
break; break;
case Def.ButtonGlygh.PauseBack: case PauseBack:
DrawIcon(14, 8, rect, pressed ? 0.8 : 1.0, false); DrawIcon(14, 8, rect, pressed ? 0.8 : 1.0, false);
break; break;
case Def.ButtonGlygh.PauseRestart: case PauseRestart:
DrawIcon(14, 9, rect, pressed ? 0.8 : 1.0, false); DrawIcon(14, 9, rect, pressed ? 0.8 : 1.0, false);
break; break;
case Def.ButtonGlygh.PauseContinue: case PauseContinue:
case Def.ButtonGlygh.ResumeContinue: case ResumeContinue:
DrawIcon(14, 10, rect, pressed ? 0.8 : 1.0, false); DrawIcon(14, 10, rect, pressed ? 0.8 : 1.0, false);
break; break;
case Def.ButtonGlygh.WinLostReturn: case WinLostReturn:
DrawIcon(14, 3, rect, pressed ? 0.8 : 1.0, false); DrawIcon(14, 3, rect, pressed ? 0.8 : 1.0, false);
break; break;
case Def.ButtonGlygh.InitBuy: case InitBuy:
case Def.ButtonGlygh.TrialBuy: case TrialBuy:
DrawIcon(14, 22, rect, pressed ? 0.8 : 1.0, false); DrawIcon(14, 22, rect, pressed ? 0.8 : 1.0, false);
break; break;
case Def.ButtonGlygh.InitRanking: case InitRanking:
DrawIcon(14, 12, rect, pressed ? 0.8 : 1.0, false); DrawIcon(14, 12, rect, pressed ? 0.8 : 1.0, false);
break; break;
case Def.ButtonGlygh.TrialCancel: case TrialCancel:
case Def.ButtonGlygh.RankingContinue: case RankingContinue:
DrawIcon(14, 8, rect, pressed ? 0.8 : 1.0, false); DrawIcon(14, 8, rect, pressed ? 0.8 : 1.0, false);
break; break;
case Def.ButtonGlygh.SetupSounds: case SetupSounds:
case Def.ButtonGlygh.SetupJump: case SetupJump:
case Def.ButtonGlygh.SetupZoom: case SetupZoom:
case Def.ButtonGlygh.SetupAccel: case SetupAccel:
DrawIcon(14, selected ? 13 : 21, rect, pressed ? 0.8 : 1.0, false); DrawIcon(14, selected ? 13 : 21, rect, pressed ? 0.8 : 1.0, false);
break; break;
case Def.ButtonGlygh.SetupReset: case SetupReset:
DrawIcon(14, 20, rect, pressed ? 0.8 : 1.0, false); DrawIcon(14, 20, rect, pressed ? 0.8 : 1.0, false);
break; break;
case Def.ButtonGlygh.SetupReturn: case SetupReturn:
DrawIcon(14, 8, rect, pressed ? 0.8 : 1.0, false); DrawIcon(14, 8, rect, pressed ? 0.8 : 1.0, false);
break; break;
case Def.ButtonGlygh.PlayJump: case PlayJump:
DrawIcon(14, 2, rect, pressed ? 0.6 : 1.0, false); DrawIcon(14, 2, rect, pressed ? 0.6 : 1.0, false);
break; break;
case Def.ButtonGlygh.PlayAction: case PlayAction:
DrawIcon(14, 12, rect, pressed ? 0.6 : 1.0, false); DrawIcon(14, 12, rect, pressed ? 0.6 : 1.0, false);
break; break;
case Def.ButtonGlygh.PlayDown: case PlayDown:
DrawIcon(14, 23, rect, pressed ? 0.6 : 1.0, false); DrawIcon(14, 23, rect, pressed ? 0.6 : 1.0, false);
break; break;
case Def.ButtonGlygh.PlayPause: case PlayPause:
DrawIcon(14, 3, rect, pressed ? 0.6 : 1.0, false); DrawIcon(14, 3, rect, pressed ? 0.6 : 1.0, false);
break; break;
case Def.ButtonGlygh.Cheat1: case Cheat1:
case Def.ButtonGlygh.Cheat2: case Cheat2:
case Def.ButtonGlygh.Cheat3: case Cheat3:
case Def.ButtonGlygh.Cheat4: case Cheat4:
case Def.ButtonGlygh.Cheat5: case Cheat5:
case Def.ButtonGlygh.Cheat6: case Cheat6:
case Def.ButtonGlygh.Cheat7: case Cheat7:
case Def.ButtonGlygh.Cheat8: case Cheat8:
case Def.ButtonGlygh.Cheat9: case Cheat9:
{ {
DrawIcon(14, 0, rect, pressed ? 0.6 : 1.0, false); DrawIcon(14, 0, rect, pressed ? 0.6 : 1.0, false);
TinyPoint tinyPoint = default(TinyPoint); TinyPoint tinyPoint = default_(new TinyPoint());
tinyPoint.X = rect.Left + rect.Width / 2 - (int)originX; tinyPoint.X = rect.Left + rect.Width() / 2 - (int)originX;
tinyPoint.Y = rect.Top + 28; tinyPoint.Y = rect.Top + 28;
TinyPoint pos = tinyPoint; TinyPoint pos = tinyPoint;
Text.DrawTextCenter(this, pos, Decor.GetCheatTinyText(glyph), 1.0); Text.DrawTextCenter(this, pos, Decor.GetCheatTinyText(glyph), 1.0);
break; break;
} }
case Def.ButtonGlygh.Cheat11: case Cheat11:
case Def.ButtonGlygh.Cheat12: case Cheat12:
case Def.ButtonGlygh.Cheat21: case Cheat21:
case Def.ButtonGlygh.Cheat22: case Cheat22:
case Def.ButtonGlygh.Cheat31: case Cheat31:
case Def.ButtonGlygh.Cheat32: case Cheat32:
break; break;
} }
} }
public void LoadContent() public void LoadContent()
{ {
spriteBatch = new SpriteBatch(game1.GraphicsDevice); spriteBatch = new SpriteBatch(game1.GraphicsDevice());
bitmapText = game1.Content.Load<Texture2D>("icons/text"); bitmapText = game1.Content.Load("icons/text", Texture2D.class);
bitmapButton = game1.Content.Load<Texture2D>("icons/button"); bitmapButton = game1.Content.Load("icons/button", Texture2D.class);
bitmapJauge = game1.Content.Load<Texture2D>("icons/jauge"); bitmapJauge = game1.Content.Load("icons/jauge", Texture2D.class);
bitmapBlupi = game1.Content.Load<Texture2D>("icons/blupi"); bitmapBlupi = game1.Content.Load("icons/blupi", Texture2D.class);
bitmapBlupi1 = game1.Content.Load<Texture2D>("icons/blupi1"); bitmapBlupi1 = game1.Content.Load("icons/blupi1", Texture2D.class);
bitmapObject = game1.Content.Load<Texture2D>("icons/object-m"); bitmapObject = game1.Content.Load("icons/object-m", Texture2D.class);
bitmapElement = game1.Content.Load<Texture2D>("icons/element"); bitmapElement = game1.Content.Load("icons/element", Texture2D.class);
bitmapExplo = game1.Content.Load<Texture2D>("icons/explo"); bitmapExplo = game1.Content.Load("icons/explo", Texture2D.class);
bitmapPad = game1.Content.Load<Texture2D>("icons/pad"); bitmapPad = game1.Content.Load("icons/pad", Texture2D.class);
bitmapSpeedyBlupi = game1.Content.Load<Texture2D>("backgrounds/speedyblupi"); bitmapSpeedyBlupi = game1.Content.Load("backgrounds/speedyblupi", Texture2D.class);
bitmapBlupiYoupie = game1.Content.Load<Texture2D>("backgrounds/blupiyoupie"); bitmapBlupiYoupie = game1.Content.Load("backgrounds/blupiyoupie", Texture2D.class);
bitmapGear = game1.Content.Load<Texture2D>("backgrounds/gear"); bitmapGear = game1.Content.Load("backgrounds/gear", Texture2D.class);
UpdateGeometry(); UpdateGeometry();
} }
private void UpdateGeometry() private void UpdateGeometry()
{ {
double num = graphics.GraphicsDevice.Viewport.Width; double num = graphics.GraphicsDevice().Viewport().Width();
double num2 = graphics.GraphicsDevice.Viewport.Height; double num2 = graphics.GraphicsDevice().Viewport().Height();
double val = num / 640.0; double val = num / 640.0;
double val2 = num2 / 480.0; double val2 = num2 / 480.0;
zoom = Math.Min(val, val2); zoom = Math_.Min(val, val2);
originX = (num - 640.0 * zoom) / 2.0; originX = (num - 640.0 * zoom) / 2.0;
originY = (num2 - 480.0 * zoom) / 2.0; originY = (num2 - 480.0 * zoom) / 2.0;
} }
public void BackgroundCache(string name) public void BackgroundCache(String name)
{ {
bitmapBackground = game1.Content.Load<Texture2D>("backgrounds/" + name); bitmapBackground = game1.Content.Load("backgrounds/" + name, Texture2D.class);
} }
public bool Start() public boolean Start()
{ {
graphics.GraphicsDevice.Clear(Color.CornflowerBlue); graphics.GraphicsDevice().Clear(Color.CornflowerBlue);
return true; return true;
} }
public bool Finish() public boolean Finish()
{ {
return true; return true;
} }
public void DrawBackground() public void DrawBackground()
{ {
double num = graphics.GraphicsDevice.Viewport.Width; double num = graphics.GraphicsDevice().Viewport().Width();
double num2 = graphics.GraphicsDevice.Viewport.Height; double num2 = graphics.GraphicsDevice().Viewport().Height();
Texture2D bitmap = GetBitmap(3); Texture2D bitmap = GetBitmap(3);
Rectangle srcRectangle = GetSrcRectangle(bitmap, 10, 10, 10, 10, 0, 0); Rectangle srcRectangle = GetSrcRectangle(bitmap, 10, 10, 10, 10, 0, 0);
Rectangle destinationRectangle = new Rectangle(0, 0, (int)num, (int)num2); Rectangle destinationRectangle = new Rectangle(0, 0, (int)num, (int)num2);
spriteBatch.Begin(SpriteSortMode.BackToFront, BlendState.AlphaBlend); spriteBatch.Begin(SpriteSortMode.BackToFront, BlendState.AlphaBlend);
spriteBatch.Draw(bitmap, destinationRectangle, srcRectangle, Color.White); spriteBatch.Draw(bitmap, destinationRectangle, srcRectangle, Color.White);
spriteBatch.End(); spriteBatch.End();
TinyPoint tinyPoint = default(TinyPoint); TinyPoint tinyPoint = default_(new TinyPoint());
tinyPoint.X = (int)originX; tinyPoint.X = (int)originX;
tinyPoint.Y = (int)originY; tinyPoint.Y = (int)originY;
TinyPoint dest = tinyPoint; TinyPoint dest = tinyPoint;
TinyRect tinyRect = default(TinyRect); TinyRect tinyRect = default_(new TinyRect());
tinyRect.Left = 0; tinyRect.Left = 0;
tinyRect.Top = 0; tinyRect.Top = 0;
tinyRect.Right = 640; tinyRect.Right = 640;
@ -294,7 +303,7 @@ namespace WindowsPhoneSpeedyBlupi
{ {
pos.X = (int)((double)pos.X + originX); pos.X = (int)((double)pos.X + originX);
pos.Y = (int)((double)pos.Y + originY); pos.Y = (int)((double)pos.Y + originY);
TinyRect tinyRect = default(TinyRect); TinyRect tinyRect = default_(new TinyRect());
tinyRect.Left = pos.X; tinyRect.Left = pos.X;
tinyRect.Top = pos.Y; tinyRect.Top = pos.Y;
tinyRect.Right = pos.X + (int)(32.0 * size); tinyRect.Right = pos.X + (int)(32.0 * size);
@ -307,7 +316,7 @@ namespace WindowsPhoneSpeedyBlupi
{ {
pos.X = (int)((double)pos.X + originX); pos.X = (int)((double)pos.X + originX);
pos.Y = (int)((double)pos.Y + originY); pos.Y = (int)((double)pos.Y + originY);
TinyRect tinyRect = default(TinyRect); TinyRect tinyRect = default_(new TinyRect());
tinyRect.Left = pos.X; tinyRect.Left = pos.X;
tinyRect.Top = pos.Y; tinyRect.Top = pos.Y;
tinyRect.Right = pos.X; tinyRect.Right = pos.X;
@ -318,7 +327,7 @@ namespace WindowsPhoneSpeedyBlupi
public void QuickIcon(int channel, int rank, TinyPoint pos) public void QuickIcon(int channel, int rank, TinyPoint pos)
{ {
TinyRect tinyRect = default(TinyRect); TinyRect tinyRect = default_(new TinyRect());
tinyRect.Left = pos.X; tinyRect.Left = pos.X;
tinyRect.Top = pos.Y; tinyRect.Top = pos.Y;
tinyRect.Right = pos.X; tinyRect.Right = pos.X;
@ -329,7 +338,7 @@ namespace WindowsPhoneSpeedyBlupi
public void QuickIcon(int channel, int rank, TinyPoint pos, double opacity, double rotation) public void QuickIcon(int channel, int rank, TinyPoint pos, double opacity, double rotation)
{ {
TinyRect tinyRect = default(TinyRect); TinyRect tinyRect = default_(new TinyRect());
tinyRect.Left = pos.X; tinyRect.Left = pos.X;
tinyRect.Top = pos.Y; tinyRect.Top = pos.Y;
tinyRect.Right = pos.X; tinyRect.Right = pos.X;
@ -338,12 +347,12 @@ namespace WindowsPhoneSpeedyBlupi
DrawIcon(channel, rank, rect, opacity, rotation, true); DrawIcon(channel, rank, rect, opacity, rotation, true);
} }
public bool DrawPart(int channel, TinyPoint dest, TinyRect rect) public boolean DrawPart(int channel, TinyPoint dest, TinyRect rect)
{ {
return DrawPart(channel, dest, rect, 1.0); return DrawPart(channel, dest, rect, 1.0);
} }
public bool DrawPart(int channel, TinyPoint dest, TinyRect rect, double zoom) public boolean DrawPart(int channel, TinyPoint dest, TinyRect rect, double zoom)
{ {
Texture2D bitmap = GetBitmap(channel); Texture2D bitmap = GetBitmap(channel);
if (bitmap == null) if (bitmap == null)
@ -355,20 +364,20 @@ namespace WindowsPhoneSpeedyBlupi
dest.X = (int)((double)dest.X + originX); dest.X = (int)((double)dest.X + originX);
dest.Y = (int)((double)dest.Y + originY); dest.Y = (int)((double)dest.Y + originY);
} }
Rectangle value = new Rectangle(rect.Left, rect.Top, rect.Width, rect.Height); Rectangle value = new Rectangle(rect.Left, rect.Top, rect.Width(), rect.Height());
Rectangle destinationRectangle = new Rectangle(dest.X, dest.Y, (int)((double)rect.Width * zoom), (int)((double)rect.Height * zoom)); Rectangle destinationRectangle = new Rectangle(dest.X, dest.Y, (int)((double)rect.Width() * zoom), (int)((double)rect.Height() * zoom));
spriteBatch.Begin(SpriteSortMode.BackToFront, BlendState.AlphaBlend); spriteBatch.Begin(SpriteSortMode.BackToFront, BlendState.AlphaBlend);
spriteBatch.Draw(bitmap, destinationRectangle, value, Color.White); spriteBatch.Draw(bitmap, destinationRectangle, value, Color.White);
spriteBatch.End(); spriteBatch.End();
return true; return true;
} }
public void DrawIcon(int channel, int icon, TinyRect rect, double opacity, bool useHotSpot) public void DrawIcon(int channel, int icon, TinyRect rect, double opacity, boolean useHotSpot)
{ {
DrawIcon(channel, icon, rect, opacity, 0.0, useHotSpot); DrawIcon(channel, icon, rect, opacity, 0.0, useHotSpot);
} }
public void DrawIcon(int channel, int icon, TinyRect rect, double opacity, double rotation, bool useHotSpot) public void DrawIcon(int channel, int icon, TinyRect rect, double opacity, double rotation, boolean useHotSpot)
{ {
if (icon == -1) if (icon == -1)
{ {
@ -414,7 +423,7 @@ namespace WindowsPhoneSpeedyBlupi
num = 144; num = 144;
bitmapGridY = 144; bitmapGridY = 144;
num2 = Tables.table_explo_size[icon]; num2 = Tables.table_explo_size[icon];
iconWidth = Math.Max(num2, 128); iconWidth = Math_.Max(num2, 128);
gap = 0; gap = 0;
break; break;
case 6: case 6:
@ -485,8 +494,8 @@ namespace WindowsPhoneSpeedyBlupi
private Rectangle GetSrcRectangle(Texture2D bitmap, int bitmapGridX, int bitmapGridY, int iconWidth, int iconHeight, int gap, int icon) private Rectangle GetSrcRectangle(Texture2D bitmap, int bitmapGridX, int bitmapGridY, int iconWidth, int iconHeight, int gap, int icon)
{ {
int width = bitmap.Bounds.Width; int width = bitmap.Bounds().Width;
int height = bitmap.Bounds.Height; int height = bitmap.Bounds().Height;
int num = icon % (width / bitmapGridX); int num = icon % (width / bitmapGridX);
int num2 = icon / (width / bitmapGridX); int num2 = icon / (width / bitmapGridX);
bitmapGridX += gap; bitmapGridX += gap;
@ -494,10 +503,10 @@ namespace WindowsPhoneSpeedyBlupi
return new Rectangle(gap + num * bitmapGridX, gap + num2 * bitmapGridY, iconWidth, iconHeight); return new Rectangle(gap + num * bitmapGridX, gap + num2 * bitmapGridY, iconWidth, iconHeight);
} }
private Rectangle GetDstRectangle(TinyRect rect, int iconWidth, int iconHeight, bool useHotSpot) private Rectangle GetDstRectangle(TinyRect rect, int iconWidth, int iconHeight, boolean useHotSpot)
{ {
int num = ((rect.Width == 0) ? iconWidth : rect.Width); int num = ((rect.Width() == 0) ? iconWidth : rect.Width());
int num2 = ((rect.Height == 0) ? iconHeight : rect.Height); int num2 = ((rect.Height() == 0) ? iconHeight : rect.Height());
int num3 = (int)((double)rect.Left * zoom); int num3 = (int)((double)rect.Left * zoom);
int num4 = (int)((double)rect.Top * zoom); int num4 = (int)((double)rect.Top * zoom);
int num5 = (int)((double)num3 + (double)num * zoom); int num5 = (int)((double)num3 + (double)num * zoom);
@ -558,4 +567,3 @@ namespace WindowsPhoneSpeedyBlupi
} }
} }
}

View File

@ -1,2 +1,17 @@
using var game = new WindowsPhoneSpeedyBlupi.Game1(); package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
game.Run();
import com.openeggbert.jxna.Microsoft.Xna.Framework.*;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.namespace;
@namespace(name = "WindowsPhoneSpeedyBlupi")
public class Program {
public static void main(String[] args) {
Game game = new com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi.Game1();
game.Run();
}
}

View File

@ -1,41 +1,46 @@
using System.Reflection; package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi.Properties;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Resources;
// General Information about an assembly is controlled through the following public class AssemblyInfo {
// set of attributes. Change these attribute values to modify the information }
// associated with an assembly.
//[assembly: AssemblyTitle("Speedy Blupi")]
//[assembly: AssemblyProduct("Speedy Blupi")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyCompany("Dada Games")]
[assembly: AssemblyCopyright("Copyright © 2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: NeutralResourcesLanguage("en-US")]
// Configuration //using System.Reflection;
//[assembly: AssemblyConfiguration("")] //using System.Runtime.CompilerServices;
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] //using System.Runtime.InteropServices;
[assembly: CompilationRelaxations(8)] //using System.Resources;
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("4b6c546f-6967-447a-8eda-c3236043dcf7")]
// Version information for an assembly consists of the following four values:
// //
// Major Version //// General Information about an assembly is controlled through the following
// Minor Version //// set of attributes. Change these attribute values to modify the information
// Build Number //// associated with an assembly.
// Revision ////[assembly: AssemblyTitle("Speedy Blupi")]
////[assembly: AssemblyProduct("Speedy Blupi")]
//[assembly: AssemblyDescription("")]
//[assembly: AssemblyCompany("Dada Games")]
//[assembly: AssemblyCopyright("Copyright © 2013")]
//[assembly: AssemblyTrademark("")]
//[assembly: AssemblyCulture("")]
//[assembly: NeutralResourcesLanguage("en-US")]
// //
// You can specify all the values or you can default the Revision and Build Numbers //// Configuration
// by using the '*' as shown below: ////[assembly: AssemblyConfiguration("")]
[assembly: AssemblyVersion("1.0.0.5")] //[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: AssemblyFileVersion("1.0.0.0")] //[assembly: CompilationRelaxations(8)]
//
//// Setting ComVisible to false makes the types in this assembly not visible
//// to COM components. If you need to access a type in this assembly from
//// COM, set the ComVisible attribute to true on that type.
//[assembly: ComVisible(false)]
//
//// The following GUID is for the ID of the typelib if this project is exposed to COM
//[assembly: Guid("4b6c546f-6967-447a-8eda-c3236043dcf7")]
//
//// Version information for an assembly consists of the following four values:
////
//// Major Version
//// Minor Version
//// Build Number
//// Revision
////
//// You can specify all the values or you can default the Revision and Build Numbers
//// by using the '*' as shown below:
//[assembly: AssemblyVersion("1.0.0.5")]
//[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -1,63 +1,66 @@
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439 package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
// WindowsPhoneSpeedyBlupi.Resource // WindowsPhoneSpeedyBlupi.Resource
using System.CodeDom.Compiler; import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.internal;
using System.ComponentModel; //import com.openeggbert.jdotnet.System.CodeDom.Compiler.*;
using System.Diagnostics; //import com.openeggbert.jdotnet.System.ComponentModel.*;
using System.Globalization; import com.openeggbert.jdotnet.System.Diagnostics.*;
using System.Resources; import com.openeggbert.jdotnet.System.Globalization.*;
using System.Runtime.CompilerServices; import com.openeggbert.jdotnet.System.Resources.*;
using WindowsPhoneSpeedyBlupi; //import com.openeggbert.jdotnet.System.Runtime.CompilerServices.*;
import static com.openeggbert.jdotnet.System.Type.typeof;
import com.openeggbert.jdotnet.System.object;
//[DebuggerNonUserCode] //[DebuggerNonUserCode]
//[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] //[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
//[CompilerGenerated] //[CompilerGenerated]
namespace WindowsPhoneSpeedyBlupi
{
internal class Resource @internal class Resource
{ {
private static ResourceManager resourceMan; private static ResourceManager resourceMan;
private static CultureInfo resourceCulture; private static CultureInfo resourceCulture;
[EditorBrowsable(EditorBrowsableState.Advanced)] //[EditorBrowsable(EditorBrowsableState.Advanced)]
internal static ResourceManager ResourceManager @internal static ResourceManager ResourceManager()
{ {
get
{ {
if (object.ReferenceEquals(resourceMan, null)) if (object.ReferenceEquals(resourceMan, null))
{ {
ResourceManager resourceManager = new ResourceManager("WindowsPhoneSpeedyBlupi.Resource", typeof(Resource).Assembly); ResourceManager resourceManager = new ResourceManager("WindowsPhoneSpeedyBlupi.Resource", typeof(Resource.class).Assembly());
resourceMan = resourceManager; resourceMan = resourceManager;
} }
return resourceMan; return resourceMan;
} }
} }
[EditorBrowsable(EditorBrowsableState.Advanced)] //[EditorBrowsable(EditorBrowsableState.Advanced)]
internal static CultureInfo Culture @internal static CultureInfo Culture()
{ {
get
{ {
return resourceCulture; return resourceCulture;
} }
set }
{ @internal
resourceCulture = value; static void setCultureInfo(CultureInfo value) {
} resourceCulture = value;
} }
internal static string Title @internal static String Title()
{ {
get
{ {
return ResourceManager.GetString("Title", resourceCulture); return ResourceManager.GetString("Title", resourceCulture);
} }
} }
internal Resource() @internal private Resource()
{ {
} }
} }
}

View File

@ -1,63 +1,77 @@
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439 package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
// WindowsPhoneSpeedyBlupi.Slider
using System;
using WindowsPhoneSpeedyBlupi;
namespace WindowsPhoneSpeedyBlupi // WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
{ // WindowsPhoneSpeedyBlupi.Slider
import static com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.default_.default_;
import com.openeggbert.jdotnet.System.*;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.namespace;
@namespace(name = "WindowsPhoneSpeedyBlupi")
@AllArgsConstructor
public class Slider public class Slider
{ {
public TinyPoint TopLeftCorner { get; set; } public TinyPoint TopLeftCorner() {
return getTopLeftCorner();
public double Value { get; set; }
private int PosLeft
{
get
{
return TopLeftCorner.X + 22;
}
} }
@Getter @Setter
public TinyPoint TopLeftCorner;
private int PosRight public double Value() {
return getValue();
}
@Getter @Setter
public double Value;
private int PosLeft() {
return getPosLeft();
}
private int getPosLeft()
{ {
get return TopLeftCorner.X + 22;
{ }
return TopLeftCorner.X + 248 - 22; private int PosRight() {
} return getPosRight();
}
private int getPosRight()
{
return TopLeftCorner.X + 248 - 22;
} }
public void Draw(Pixmap pixmap) public void Draw(Pixmap pixmap)
{ {
TinyPoint tinyPoint = default(TinyPoint); TinyPoint tinyPoint = default_(new TinyPoint());
tinyPoint.X = TopLeftCorner.X - pixmap.Origin.X; tinyPoint.X = TopLeftCorner.X - pixmap.Origin().X;
tinyPoint.Y = TopLeftCorner.Y - pixmap.Origin.Y; tinyPoint.Y = TopLeftCorner.Y - pixmap.Origin().Y;
TinyPoint dest = tinyPoint; TinyPoint dest = tinyPoint;
TinyRect tinyRect = default(TinyRect); TinyRect tinyRect = default_(new TinyRect());
tinyRect.Left = 0; tinyRect.Left = 0;
tinyRect.Right = 124; tinyRect.Right = 124;
tinyRect.Top = 0; tinyRect.Top = 0;
tinyRect.Bottom = 22; tinyRect.Bottom = 22;
TinyRect rect = tinyRect; TinyRect rect = tinyRect;
pixmap.DrawPart(5, dest, rect, 2.0); pixmap.DrawPart(5, dest, rect, 2.0);
int num = (int)((double)(PosRight - PosLeft) * Value); int num = (int)((double)(PosRight() - PosLeft()) * Value);
int num2 = TopLeftCorner.Y + 22; int num2 = TopLeftCorner.Y + 22;
int num3 = 94; int num3 = 94;
TinyRect tinyRect2 = default(TinyRect); TinyRect tinyRect2 = default_(new TinyRect());
tinyRect2.Left = PosLeft + num - num3 / 2; tinyRect2.Left = PosLeft() + num - num3 / 2;
tinyRect2.Right = PosLeft + num + num3 / 2; tinyRect2.Right = PosLeft() + num + num3 / 2;
tinyRect2.Top = num2 - num3 / 2; tinyRect2.Top = num2 - num3 / 2;
tinyRect2.Bottom = num2 + num3 / 2; tinyRect2.Bottom = num2 + num3 / 2;
rect = tinyRect2; rect = tinyRect2;
pixmap.DrawIcon(14, 1, rect, 1.0, false); pixmap.DrawIcon(14, 1, rect, 1.0, false);
TinyRect tinyRect3 = default(TinyRect); TinyRect tinyRect3 = default_(new TinyRect());
tinyRect3.Left = TopLeftCorner.X - 65; tinyRect3.Left = TopLeftCorner.X - 65;
tinyRect3.Right = TopLeftCorner.X - 65 + 60; tinyRect3.Right = TopLeftCorner.X - 65 + 60;
tinyRect3.Top = TopLeftCorner.Y - 10; tinyRect3.Top = TopLeftCorner.Y - 10;
tinyRect3.Bottom = TopLeftCorner.Y - 10 + 60; tinyRect3.Bottom = TopLeftCorner.Y - 10 + 60;
rect = tinyRect3; rect = tinyRect3;
pixmap.DrawIcon(10, 37, rect, 1.0, false); pixmap.DrawIcon(10, 37, rect, 1.0, false);
TinyRect tinyRect4 = default(TinyRect); TinyRect tinyRect4 = default_(new TinyRect());
tinyRect4.Left = TopLeftCorner.X + 248 + 5; tinyRect4.Left = TopLeftCorner.X + 248 + 5;
tinyRect4.Right = TopLeftCorner.X + 248 + 5 + 60; tinyRect4.Right = TopLeftCorner.X + 248 + 5 + 60;
tinyRect4.Top = TopLeftCorner.Y - 10; tinyRect4.Top = TopLeftCorner.Y - 10;
@ -66,9 +80,9 @@ namespace WindowsPhoneSpeedyBlupi
pixmap.DrawIcon(10, 38, rect, 1.0, false); pixmap.DrawIcon(10, 38, rect, 1.0, false);
} }
public bool Move(TinyPoint pos) public boolean Move(TinyPoint pos)
{ {
TinyRect tinyRect = default(TinyRect); TinyRect tinyRect = default_(new TinyRect());
tinyRect.Left = TopLeftCorner.X - 50; tinyRect.Left = TopLeftCorner.X - 50;
tinyRect.Right = TopLeftCorner.X + 248 + 50; tinyRect.Right = TopLeftCorner.X + 248 + 50;
tinyRect.Top = TopLeftCorner.Y - 50; tinyRect.Top = TopLeftCorner.Y - 50;
@ -76,9 +90,9 @@ namespace WindowsPhoneSpeedyBlupi
TinyRect rect = tinyRect; TinyRect rect = tinyRect;
if (Misc.IsInside(rect, pos)) if (Misc.IsInside(rect, pos))
{ {
double val = ((double)pos.X - (double)PosLeft) / (double)(PosRight - PosLeft); double val = ((double)pos.X - (double)PosLeft()) / (double)(PosRight() - PosLeft());
val = Math.Max(val, 0.0); val = Math_.Max(val, 0.0);
val = Math.Min(val, 1.0); val = Math_.Min(val, 1.0);
if (Value != val) if (Value != val)
{ {
Value = val; Value = val;
@ -89,4 +103,3 @@ namespace WindowsPhoneSpeedyBlupi
} }
} }
}

View File

@ -1,42 +1,39 @@
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439 package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
// WindowsPhoneSpeedyBlupi.Sound
using System; // WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
using System.Collections.Generic; // WindowsPhoneSpeedyBlupi.Sound
using System.Linq; import com.openeggbert.jdotnet.System.*;
using Microsoft.Xna.Framework.Audio; import com.openeggbert.jdotnet.System.Collections.Generic.*;
using WindowsPhoneSpeedyBlupi; import com.openeggbert.jdotnet.System.Linq.*;
import com.openeggbert.jxna.Microsoft.Xna.Framework.Audio.*;
import java.util.ArrayList;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.namespace;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.readonly;
@namespace(name = "WindowsPhoneSpeedyBlupi")
namespace WindowsPhoneSpeedyBlupi
{
public class Sound public class Sound
{ {
private class Play private class Play
{ {
private readonly SoundEffectInstance sei; private final SoundEffectInstance sei;
private readonly int channel; private final int channel;
public int Channel() { return channel;}
public int Channel public boolean IsFree()
{ {
get return sei.State == SoundState.Stopped;
{
return channel;
}
} }
public bool IsFree public Play(SoundEffect se, int channel, double volume, double balance, Double pitch, boolean isLooped)
{
get
{
return sei.State == SoundState.Stopped;
}
}
public Play(SoundEffect se, int channel, double volume, double balance, double? pitch, bool isLooped)
{ {
this.channel = channel; this.channel = channel;
int num = channel * 2; int num = channel * 2;
if (num >= 0 && num < tableVolumePitch.Length) if (num >= 0 && num < tableVolumePitch.length)
{ {
volume *= tableVolumePitch[num]; volume *= tableVolumePitch[num];
pitch = tableVolumePitch[num + 1]; pitch = tableVolumePitch[num + 1];
@ -44,7 +41,7 @@ namespace WindowsPhoneSpeedyBlupi
sei = se.CreateInstance(); sei = se.CreateInstance();
sei.Volume = (float)volume; sei.Volume = (float)volume;
sei.Pan = (float)balance; sei.Pan = (float)balance;
sei.Pitch = (float)(pitch ?? 0.0); sei.Pitch = (float)(pitch == null ? 0.0d : pitch);
sei.IsLooped = isLooped; sei.IsLooped = isLooped;
sei.Play(); sei.Play();
} }
@ -55,7 +52,7 @@ namespace WindowsPhoneSpeedyBlupi
} }
} }
private static double[] tableVolumePitch = new double[200] private static double[] tableVolumePitch = new double[]
{ {
1.0, 0.0, 0.5, 1.0, 0.5, 1.0, 1.0, 0.2, 1.0, 0.2, 1.0, 0.0, 0.5, 1.0, 0.5, 1.0, 1.0, 0.2, 1.0, 0.2,
1.0, 0.1, 1.0, 0.3, 1.0, 0.2, 1.0, 0.3, 1.0, 0.5, 1.0, 0.1, 1.0, 0.3, 1.0, 0.2, 1.0, 0.3, 1.0, 0.5,
@ -79,15 +76,15 @@ namespace WindowsPhoneSpeedyBlupi
1.0, 0.2, 1.0, 0.2, 1.0, 0.2, 1.0, 0.2, 1.0, 0.2 1.0, 0.2, 1.0, 0.2, 1.0, 0.2, 1.0, 0.2, 1.0, 0.2
}; };
public static readonly int MAXVOLUME = 20; public static final int MAXVOLUME = 20;
private readonly Game1 game1; private final Game1 game1;
private readonly GameData gameData; private final GameData gameData;
private readonly List<SoundEffect> soundEffects; private @readonly final List_<SoundEffect> soundEffects;
private readonly List<Play> plays; private final List_<Play> plays;
private double volume; private double volume;
@ -95,39 +92,39 @@ namespace WindowsPhoneSpeedyBlupi
{ {
this.game1 = game1; this.game1 = game1;
this.gameData = gameData; this.gameData = gameData;
soundEffects = new List<SoundEffect>(); soundEffects = new List_<>();
plays = new List<Play>(); plays = new List_<>();
volume = 1.0; volume = 1.0;
SoundEffect.MasterVolume = 1f; SoundEffect.MasterVolume = 1f;
} }
public void LoadContent() public void LoadContent()
{ {
if (Def.HasSound) if (Def.HasSound())
{ {
for (int i = 0; i <= 92; i++) for (int i = 0; i <= 92; i++)
{ {
string assetName = string.Format("sounds/sound{0}", i.ToString("d3")); String assetName = string.Format("sounds/sound{0}", int_.of(i).ToString("d3"));
SoundEffect item = game1.Content.Load<SoundEffect>(assetName); SoundEffect item = game1.Content.Load(assetName, SoundEffect.class);
soundEffects.Add(item); soundEffects.Add(item);
} }
} }
} }
public bool Create() public boolean Create()
{ {
return true; return true;
} }
public void SetState(bool bState) public void SetState(boolean bState)
{ {
} }
public void SetCDAudio(bool bAudio) public void SetCDAudio(boolean bAudio)
{ {
} }
public bool GetEnable() public boolean GetEnable()
{ {
return true; return true;
} }
@ -150,39 +147,40 @@ namespace WindowsPhoneSpeedyBlupi
{ {
return 0; return 0;
} }
public void StopAll() public void StopAll()
{ {
while (plays.Any()) while (plays.Any())
{ {
plays[0].Stop(); plays.ElementAt(0).Stop();
plays.RemoveAt(0); plays.RemoveAt(0);
} }
} }
public bool PlayImage(int channel, TinyPoint pos) public boolean PlayImage(int channel, TinyPoint pos)
{ {
return PlayImage(channel, pos, -1, false); return PlayImage(channel, pos, -1, false);
} }
public bool PlayImage(int channel, TinyPoint pos, int rank, bool bLoop) public boolean PlayImage(int channel, TinyPoint pos, int rank, boolean bLoop)
{ {
if (!gameData.Sounds) if (!gameData.Sounds())
{ {
return true; return true;
} }
if (channel >= 0 && channel < soundEffects.Count) if (channel >= 0 && channel < soundEffects.Count())
{ {
if (channel != 10 && plays.Where((Play x) => x.Channel == channel && !x.IsFree).Any())
{ if (channel != 10 && plays.stream()
.anyMatch(x -> x.Channel() == channel && !x.IsFree())) {
return true; return true;
} }
if (plays.Count >= 10) if (plays.Count() >= 10)
{ {
int num = 0; int num = 0;
while (num < plays.Count) while (num < plays.Count())
{ {
if (plays[num].IsFree) if (plays.ElementAt(num).IsFree())
{ {
plays.RemoveAt(num); plays.RemoveAt(num);
} }
@ -192,25 +190,25 @@ namespace WindowsPhoneSpeedyBlupi
} }
} }
} }
Play item = new Play(soundEffects[channel], channel, (float)GetVolume(pos), (float)GetBalance(pos), null, bLoop); Play item = new Play(soundEffects.ElementAt(channel), channel, (float)GetVolume(pos), (float)GetBalance(pos), null, bLoop);
plays.Add(item); plays.Add(item);
} }
return true; return true;
} }
public bool PosImage(int channel, TinyPoint pos) public boolean PosImage(int channel, TinyPoint pos)
{ {
return true; return true;
} }
public bool Stop(int channel) public boolean Stop(int channel)
{ {
int num = 0; int num = 0;
while (num < plays.Count) while (num < plays.Count())
{ {
if (plays[num].Channel == channel) if (plays.ElementAt(num).Channel() == channel)
{ {
plays[num].Stop(); plays.ElementAt(num).Stop();
plays.RemoveAt(num); plays.RemoveAt(num);
} }
else else
@ -233,8 +231,8 @@ namespace WindowsPhoneSpeedyBlupi
pos.X -= 640; pos.X -= 640;
val = 1.0 - (double)(pos.X / 640) * 2.0; val = 1.0 - (double)(pos.X / 640) * 2.0;
} }
val = Math.Max(val, 0.0); val = Math_.Max(val, 0.0);
val = Math.Min(val, 1.0); val = Math_.Min(val, 1.0);
double val2 = 1.0; double val2 = 1.0;
if (pos.Y < 0) if (pos.Y < 0)
{ {
@ -245,16 +243,15 @@ namespace WindowsPhoneSpeedyBlupi
pos.Y -= 480; pos.Y -= 480;
val2 = 1.0 - (double)(pos.Y / 480) * 3.0; val2 = 1.0 - (double)(pos.Y / 480) * 3.0;
} }
val2 = Math.Max(val2, 0.0); val2 = Math_.Max(val2, 0.0);
val2 = Math.Min(val2, 1.0); val2 = Math_.Min(val2, 1.0);
return Math.Min(val, val2) * volume; return Math_.Min(val, val2) * volume;
} }
private double GetBalance(TinyPoint pos) private double GetBalance(TinyPoint pos)
{ {
double val = (double)pos.X * 2.0 / 640.0 - 1.0; double val = (double)pos.X * 2.0 / 640.0 - 1.0;
val = Math.Max(val, -1.0); val = Math_.Max(val, -1.0);
return Math.Min(val, 1.0); return Math_.Min(val, 1.0);
} }
} }
}

View File

@ -1,11 +1,21 @@
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439 package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
// WindowsPhoneSpeedyBlupi.Tables
using WindowsPhoneSpeedyBlupi;
namespace WindowsPhoneSpeedyBlupi // WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
{
public static class Tables import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.namespace;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.static_;
// WindowsPhoneSpeedyBlupi.Tables
@namespace(name = "WindowsPhoneSpeedyBlupi")
@static_
public class Tables
{ {
private Tables() {
//Not meant to be instantiated.
}
public enum CheatCodes public enum CheatCodes
{ {
BuildOfficialMissions, BuildOfficialMissions,
@ -32,303 +42,9 @@ namespace WindowsPhoneSpeedyBlupi
WeelKeys WeelKeys
} }
public static int[] table_blupi = new int[2911] public static int[] table_blupi = Tables_table_blupi.table_blupi;
{
35, 9, 0, 276, 277, 278, 279, 280, 281, 282,
283, 284, 1, 330, 0, 0, 0, 0, 0, 0,
23, 23, 23, 0, 0, 0, 0, 0, 0, 0,
0, 0, 23, 23, 23, 23, 23, 23, 0, 0,
0, 0, 0, 0, 0, 0, 23, 23, 23, 23,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
23, 23, 23, 23, 23, 0, 0, 0, 23, 23,
23, 0, 0, 0, 0, 0, 0, 133, 133, 0,
0, 0, 133, 133, 0, 0, 0, 0, 0, 0,
0, 133, 133, 0, 0, 0, 0, 23, 23, 23,
23, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 23, 23, 0, 0, 0, 0, 0, 23,
23, 23, 0, 0, 0, 135, 135, 136, 136, 137,
137, 137, 137, 137, 137, 137, 137, 138, 138, 137,
137, 137, 138, 138, 137, 137, 137, 138, 138, 137,
137, 137, 138, 138, 137, 137, 137, 137, 137, 137,
136, 136, 135, 135, 135, 0, 0, 0, 0, 0,
23, 23, 23, 0, 0, 133, 133, 0, 0, 0,
23, 23, 23, 23, 0, 0, 0, 0, 0, 0,
0, 23, 23, 0, 0, 0, 0, 0, 0, 0,
0, 133, 133, 0, 0, 0, 0, 0, 23, 23,
23, 23, 0, 0, 0, 135, 135, 136, 136, 137,
137, 137, 137, 137, 137, 137, 137, 138, 138, 137,
137, 137, 138, 138, 137, 137, 137, 138, 138, 137,
137, 137, 138, 138, 137, 137, 137, 138, 138, 137,
137, 137, 138, 138, 137, 137, 137, 138, 138, 137,
137, 137, 138, 138, 137, 137, 137, 138, 138, 137,
137, 137, 138, 138, 137, 137, 137, 138, 138, 137,
137, 137, 138, 138, 137, 137, 137, 137, 137, 137,
136, 136, 135, 135, 135, 0, 0, 0, 0, 0,
23, 23, 23, 0, 0, 133, 133, 0, 0, 0,
23, 23, 23, 23, 0, 0, 0, 0, 0, 0,
0, 23, 23, 0, 0, 0, 0, 0, 0, 0,
0, 133, 133, 0, 0, 0, 0, 0, 23, 23,
23, 23, 0, 0, 0, 2, 6, 0, 5, 6,
7, 8, 9, 10, 60, 3, 0, 19, 18, 19,
3, 6, 0, 1, 1, 2, 2, 3, 3, 4,
3, 0, 17, 18, 19, 5, 5, 4, 169, 26,
170, 170, 27, 59, 6, 0, 3, 3, 2, 2,
1, 1, 61, 5, 0, 34, 35, 34, 34, 33,
62, 2, 0, 35, 34, 6, 3, 2, 33, 34,
35, 7, 1, 0, 44, 8, 8, 0, 0, 169,
26, 170, 27, 171, 28, 172, 9, 6, 0, 5,
6, 7, 8, 9, 10, 10, 6, 0, 5, 6,
7, 8, 9, 10, 13, 6, 0, 41, 41, 42,
42, 43, 43, 86, 18, 0, 1, 1, 2, 2,
41, 41, 42, 42, 43, 43, 42, 42, 41, 41,
2, 2, 1, 1, 87, 26, 0, 135, 135, 137,
137, 231, 231, 231, 231, 230, 230, 231, 231, 231,
231, 230, 230, 231, 231, 231, 231, 230, 230, 137,
137, 135, 135, 11, 70, 0, 40, 40, 40, 40,
41, 41, 41, 41, 40, 40, 40, 40, 40, 40,
40, 41, 41, 41, 40, 40, 40, 40, 40, 40,
40, 41, 41, 41, 40, 40, 42, 42, 42, 43,
43, 43, 44, 44, 44, 45, 45, 45, 46, 46,
47, 47, 46, 46, 47, 47, 46, 46, 47, 47,
46, 46, 47, 47, 46, 46, 47, 47, 46, 46,
47, 47, 46, 46, 47, 47, 75, 1, 0, -1,
76, 70, 0, 40, 40, 40, 40, 41, 41, 41,
41, 40, 40, 40, 40, 40, 40, 40, 41, 41,
41, 40, 40, 40, 40, 40, 40, 40, 41, 41,
41, 40, 40, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 77, 110, 0, 324, 325, 324, 325,
324, 325, 324, 325, 324, 325, 324, 325, 324, 325,
324, 325, 324, 325, 324, 325, 324, 324, 325, 325,
326, 326, 327, 327, 328, 328, 329, 329, 330, 330,
331, 331, 332, 332, 333, 333, 334, 334, 333, 333,
332, 332, 331, 331, 330, 330, 329, 329, 329, 330,
330, 330, 331, 331, 331, 332, 332, 332, 333, 333,
333, 334, 334, 334, 333, 333, 333, 332, 332, 332,
331, 331, 331, 330, 330, 330, 329, 329, 329, 329,
329, 329, 329, 329, 329, 329, 329, 329, 329, 329,
329, 329, 329, 329, 329, 329, 329, 329, 329, 329,
329, 329, 329, 329, 329, 329, 78, 1, 0, -1,
79, 1, 0, -1, 80, 1, 0, -1, 81, 1,
0, -1, 14, 6, 0, 49, 50, 51, 52, 53,
54, 29, 6, 0, 126, 125, 124, 123, 122, 121,
28, 6, 0, 122, 122, 122, 125, 125, 125, 15,
1, 0, 61, 16, 8, 0, 61, 62, 63, 62,
61, 64, 65, 64, 17, 10, 0, 71, 71, 72,
72, 73, 73, 74, 74, 75, 75, 67, 1, 0,
315, 68, 12, 0, 296, 297, 298, 299, 300, 301,
302, 301, 300, 299, 298, 297, 69, 7, 0, 296,
310, 311, 312, 313, 314, 303, 18, 10, 0, 76,
76, 76, 76, 76, 76, 77, 77, 77, 77, 19,
14, 0, 76, 76, 77, 77, 78, 78, 79, 79,
80, 80, 81, 81, 39, 39, 20, 10, 0, 88,
88, 89, 89, 90, 90, 91, 91, 92, 92, 21,
12, 0, 93, 93, 94, 94, 95, 95, 96, 96,
97, 97, 98, 98, 22, 12, 0, 93, 93, 94,
94, 95, 95, 96, 96, 97, 97, 98, 98, 23,
10, 0, 105, 105, 106, 106, 107, 107, 108, 108,
109, 109, 24, 90, 0, 93, 96, 98, 94, 95,
93, 95, 98, 93, 94, 96, 96, 94, 94, 98,
98, 93, 93, 97, 97, 94, 94, 94, 96, 96,
96, 93, 93, 93, 93, 94, 94, 94, 94, 94,
97, 97, 97, 97, 97, 76, 76, 76, 76, 76,
76, 76, 76, 76, 76, 79, 79, 76, 76, 76,
76, 79, 79, 76, 76, 76, 76, 76, 76, 76,
76, 76, 76, 76, 76, 76, 76, 76, 76, 76,
76, 76, 76, 76, 76, 76, 76, 76, 76, 76,
76, 76, 76, 76, 76, 25, 8, 0, 111, 111,
110, 110, 111, 111, 112, 112, 26, 8, 0, 111,
111, 110, 110, 111, 111, 112, 112, 27, 7, 0,
112, 113, 114, 115, 116, 117, 118, 30, 12, 0,
25, 25, 29, 29, 46, 46, 47, 47, 46, 46,
29, 29, 31, 328, 0, 156, 156, 156, 156, 157,
157, 157, 157, 158, 158, 158, 158, 157, 157, 157,
157, 156, 156, 156, 156, 157, 157, 157, 157, 158,
158, 158, 158, 157, 157, 157, 157, 156, 156, 156,
156, 157, 157, 157, 157, 158, 158, 158, 158, 157,
157, 157, 157, 156, 156, 156, 156, 157, 157, 157,
157, 158, 158, 158, 158, 157, 157, 157, 157, 156,
156, 156, 156, 157, 157, 157, 157, 158, 158, 158,
158, 157, 157, 157, 157, 156, 156, 156, 156, 157,
157, 157, 157, 158, 158, 158, 158, 157, 157, 157,
157, 156, 156, 156, 156, 157, 157, 157, 157, 158,
158, 158, 158, 157, 157, 157, 157, 144, 144, 143,
143, 151, 151, 162, 162, 163, 163, 164, 164, 163,
163, 162, 162, 163, 163, 164, 164, 163, 163, 162,
162, 163, 163, 164, 164, 163, 163, 162, 162, 163,
163, 164, 164, 163, 163, 162, 162, 151, 151, 143,
143, 144, 144, 157, 157, 156, 156, 156, 156, 157,
157, 157, 157, 158, 158, 158, 158, 157, 157, 157,
157, 156, 156, 156, 156, 157, 157, 157, 157, 158,
158, 158, 158, 157, 157, 157, 157, 156, 156, 156,
156, 157, 157, 157, 157, 158, 158, 158, 158, 157,
157, 157, 157, 156, 156, 156, 156, 157, 157, 157,
157, 158, 158, 158, 158, 157, 157, 157, 157, 144,
144, 143, 143, 151, 151, 162, 162, 163, 163, 164,
164, 163, 163, 162, 162, 163, 163, 164, 164, 163,
163, 162, 162, 163, 163, 164, 164, 163, 163, 162,
162, 163, 163, 164, 164, 163, 163, 162, 162, 151,
151, 143, 143, 151, 151, 162, 162, 163, 163, 164,
164, 163, 163, 162, 162, 163, 163, 164, 164, 163,
163, 162, 162, 163, 163, 164, 164, 163, 163, 162,
162, 163, 163, 164, 164, 163, 163, 162, 162, 163,
163, 164, 164, 163, 163, 162, 162, 163, 163, 164,
164, 163, 163, 162, 162, 151, 151, 143, 143, 144,
144, 157, 157, 32, 12, 0, 144, 144, 145, 145,
146, 146, 145, 145, 144, 144, 143, 143, 33, 10,
0, 151, 151, 152, 152, 153, 153, 154, 154, 155,
155, 34, 10, 0, 157, 157, 165, 165, 165, 165,
166, 166, 166, 166, 36, 32, 0, 135, 177, 177,
178, 178, 179, 179, 180, 180, 179, 179, 178, 178,
179, 179, 180, 180, 179, 179, 178, 178, 179, 179,
180, 180, 179, 179, 178, 178, 177, 177, 135, 37,
140, 0, 182, 182, 182, 182, 208, 208, 208, 208,
208, 182, 182, 182, 182, 182, 182, 208, 208, 208,
208, 208, 194, 194, 194, 182, 182, 182, 182, 208,
208, 208, 208, 208, 182, 182, 182, 182, 182, 182,
208, 208, 208, 208, 182, 182, 182, 182, 182, 182,
182, 182, 194, 194, 194, 195, 195, 195, 196, 196,
196, 197, 197, 197, 198, 198, 198, 198, 197, 197,
197, 196, 196, 196, 195, 195, 195, 194, 194, 194,
182, 182, 182, 182, 208, 208, 208, 208, 182, 182,
182, 182, 194, 194, 194, 195, 195, 195, 196, 196,
196, 197, 197, 197, 198, 198, 198, 198, 197, 197,
197, 196, 196, 196, 195, 195, 195, 194, 194, 194,
182, 182, 182, 182, 208, 208, 208, 208, 182, 182,
182, 182, 210, 210, 211, 211, 211, 211, 211, 211,
210, 210, 85, 1, 0, 211, 38, 96, 0, 182,
183, 184, 185, 186, 187, 182, 183, 184, 185, 186,
187, 182, 183, 184, 185, 186, 187, 182, 182, 182,
182, 182, 182, 182, 183, 184, 185, 186, 187, 182,
182, 182, 182, 182, 182, 182, 182, 182, 182, 182,
182, 182, 183, 184, 185, 186, 187, 182, 182, 182,
182, 182, 182, 182, 182, 182, 182, 182, 182, 182,
182, 182, 182, 182, 182, 182, 183, 184, 185, 186,
187, 182, 182, 182, 182, 182, 182, 182, 182, 182,
182, 182, 182, 182, 182, 182, 182, 182, 182, 182,
182, 182, 182, 182, 182, 39, 14, 0, 194, 194,
195, 195, 196, 196, 197, 197, 198, 198, 199, 199,
200, 200, 40, 3, 0, 210, 211, 212, 41, 8,
0, 213, 213, 214, 214, 215, 215, 214, 214, 42,
20, 0, 17, 17, 18, 18, 19, 19, 1, 1,
215, 215, 214, 214, 213, 213, 212, 212, 211, 211,
210, 210, 43, 20, 0, 210, 210, 211, 211, 212,
212, 213, 213, 214, 214, 215, 215, 1, 1, 19,
19, 18, 18, 17, 17, 44, 29, 0, 1, 1,
222, 222, 222, 222, 223, 223, 224, 224, 225, 225,
225, 225, 225, 224, 223, 222, 222, 222, 223, 223,
224, 224, 225, 225, 225, 1, 1, 45, 29, 0,
1, 1, 222, 222, 222, 222, 223, 223, 224, 224,
225, 225, 225, 225, 225, 224, 223, 222, 222, 222,
223, 223, 224, 224, 225, 225, 225, 1, 1, 46,
32, 0, 1, 1, 227, 227, 228, 228, 229, 229,
228, 228, 227, 227, 226, 226, 227, 227, 228, 228,
229, 229, 228, 228, 227, 227, 226, 226, 227, 227,
228, 228, 1, 1, 47, 34, 0, 135, 135, 136,
136, 137, 137, 231, 231, 231, 231, 230, 230, 231,
231, 231, 231, 230, 230, 231, 231, 231, 231, 230,
230, 231, 231, 231, 231, 137, 137, 136, 136, 135,
135, 48, 40, 0, 0, 0, 135, 135, 136, 136,
137, 137, 232, 233, 232, 233, 232, 233, 232, 233,
232, 233, 232, 233, 232, 233, 232, 233, 232, 233,
232, 233, 232, 233, 232, 233, 137, 137, 136, 136,
135, 135, 0, 0, 65, 44, 0, 1, 1, 288,
288, 289, 289, 290, 290, 290, 289, 288, 288, 289,
289, 290, 290, 290, 289, 288, 288, 289, 289, 290,
290, 290, 289, 288, 288, 289, 289, 290, 290, 290,
289, 288, 288, 289, 289, 290, 290, 290, 289, 1,
1, 49, 32, 0, 234, 234, 235, 235, 236, 236,
235, 235, 234, 234, 235, 235, 236, 236, 235, 235,
234, 234, 235, 235, 236, 236, 235, 235, 234, 234,
235, 235, 236, 236, 235, 235, 50, 64, 0, 238,
238, 239, 239, 240, 240, 241, 241, 241, 241, 241,
241, 241, 241, 241, 241, 240, 240, 241, 241, 240,
240, 241, 241, 241, 241, 241, 241, 241, 241, 241,
241, 241, 241, 240, 240, 241, 241, 240, 240, 241,
241, 241, 241, 241, 241, 241, 241, 240, 240, 239,
239, 238, 238, 238, 238, 238, 238, 237, 237, 238,
238, 237, 237, 51, 8, 0, 238, 238, 237, 237,
238, 238, 239, 239, 52, 12, 0, 238, 239, 240,
241, 242, 243, 244, 245, 246, 247, 248, 249, 53,
6, 0, 251, 251, 238, 238, 238, 238, 54, 25,
0, 168, 168, 169, 169, 170, 170, 171, 171, 170,
170, 169, 169, 168, 168, 169, 169, 169, 168, 168,
169, 169, 170, 170, 169, 168, 55, 4, 0, 253,
253, 254, 254, 56, 64, 0, 1, 3, 270, 268,
1, 3, 270, 268, 1, 3, 270, 268, 1, 3,
270, 268, 1, 3, 270, 268, 1, 3, 270, 268,
1, 3, 270, 268, 1, 3, 270, 268, 1, 2,
3, 4, 270, 269, 268, 0, 1, 2, 3, 4,
270, 269, 268, 0, 1, 1, 2, 2, 3, 3,
4, 4, 270, 270, 269, 269, 268, 268, 0, 0,
57, 90, 0, 266, 267, 266, 267, 266, 267, 266,
267, 266, 267, 266, 267, 266, 267, 266, 267, 266,
267, 266, 267, 266, 267, 266, 267, 266, 267, 266,
267, 266, 267, 40, 40, 40, 40, 41, 41, 41,
41, 40, 40, 40, 40, 40, 40, 40, 41, 41,
41, 40, 40, 40, 40, 40, 40, 40, 41, 41,
41, 40, 40, 42, 42, 42, 43, 43, 43, 44,
44, 44, 45, 45, 45, 46, 46, 47, 47, 46,
46, 47, 47, 46, 46, 47, 47, 46, 46, 47,
47, 46, 46, 82, 10, 0, 0, 268, 268, 269,
269, 269, 269, 268, 268, 0, 58, 14, 0, 274,
274, 271, 271, 271, 271, 272, 272, 273, 273, 273,
273, 274, 274, 66, 16, 0, 291, 291, 292, 292,
293, 293, 294, 294, 295, 295, 294, 294, 293, 293,
292, 292, 72, 1, 0, 320, 73, 24, 0, 319,
319, 318, 318, 317, 317, 318, 318, 319, 319, 320,
320, 321, 321, 322, 322, 323, 323, 322, 322, 321,
321, 320, 320, 74, 128, 0, 1, 1, 2, 2,
3, 3, 4, 4, 270, 270, 269, 269, 268, 268,
0, 0, 1, 2, 3, 4, 270, 269, 268, 0,
1, 2, 3, 4, 270, 269, 268, 0, 1, 3,
270, 268, 2, 4, 269, 0, 1, 3, 270, 268,
2, 4, 269, 0, -1, 3, 270, -1, 2, -1,
269, 0, 1, -1, -1, 268, -1, -1, 269, -1,
-1, -1, -1, 270, -1, -1, 2, -1, -1, -1,
-1, -1, -1, 29, 46, 47, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 63, 92, 0, 263, 264, 265,
264, 263, 264, 265, 264, 263, 264, 265, 264, 263,
264, 265, 264, 263, 264, 265, 264, 263, 264, 265,
264, 263, 264, 265, 264, 263, 264, 265, 264, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 23,
23, 23, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 23, 23, 0, 0, 0, 0, 0, 0,
0, 133, 133, 0, 0, 0, 133, 133, 0, 0,
0, 0, 0, 0, 0, 133, 133, 0, 0, 0,
0, 23, 23, 23, 23, 0, 0, 0, 0, 64,
104, 0, 1, 1, 2, 2, 3, 3, 285, 286,
287, 286, 285, 286, 287, 286, 285, 286, 287, 286,
285, 286, 287, 286, 285, 286, 287, 286, 285, 286,
287, 286, 285, 286, 287, 286, 285, 286, 287, 286,
3, 3, 2, 2, 1, 1, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 23, 23, 23, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 23,
23, 0, 0, 0, 0, 0, 0, 0, 133, 133,
0, 0, 0, 133, 133, 0, 0, 0, 0, 0,
0, 0, 133, 133, 0, 0, 0, 0, 23, 23,
23, 23, 0, 0, 0, 0, 83, 60, 0, 1,
1, 288, 288, 289, 289, 290, 290, 290, 289, 288,
288, 289, 289, 290, 290, 290, 289, 288, 288, 289,
289, 290, 290, 290, 289, 288, 288, 289, 289, 290,
290, 290, 289, 288, 288, 289, 289, 290, 290, 290,
289, 288, 288, 289, 289, 290, 290, 290, 290, 290,
290, 290, 290, 290, 290, 290, 290, 1, 1, 84,
18, 0, 1, 1, 227, 227, 228, 228, 229, 229,
228, 228, 227, 227, 226, 226, 227, 227, 1, 1,
0
};
public static int[] table_mirror = new int[335] public static int[] table_mirror = new int[]
{ {
4, 3, 2, 1, 0, 11, 12, 13, 14, 15, 4, 3, 2, 1, 0, 11, 12, 13, 14, 15,
16, 5, 6, 7, 8, 9, 10, 20, 21, 22, 16, 5, 6, 7, 8, 9, 10, 20, 21, 22,
@ -366,13 +82,13 @@ namespace WindowsPhoneSpeedyBlupi
330, 331, 332, 333, 334 330, 331, 332, 333, 334
}; };
public static int[] table_vitesse_march = new int[4] { 2, 4, 6, 8 }; public static int[] table_vitesse_march = new int[] { 2, 4, 6, 8 };
public static int[] table_vitesse_nage = new int[7] { 2, 1, 5, 10, 8, 6, 4 }; public static int[] table_vitesse_nage = new int[] { 2, 1, 5, 10, 8, 6, 4 };
public static int[] table_vitesse_surf = new int[6] { 0, 2, 5, 8, 3, 0 }; public static int[] table_vitesse_surf = new int[] { 0, 2, 5, 8, 3, 0 };
public static short[] table_decor_quart = new short[7056] public static short[] table_decor_quart = new short[]
{ {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
@ -1082,29 +798,29 @@ namespace WindowsPhoneSpeedyBlupi
1, 0, 0, 1, 1, 0 1, 0, 0, 1, 1, 0
}; };
public static int[] table_bulldozer_left = new int[8] { 66, 66, 67, 67, 66, 66, 65, 65 }; public static int[] table_bulldozer_left = new int[] { 66, 66, 67, 67, 66, 66, 65, 65 };
public static int[] table_bulldozer_right = new int[8] { 58, 58, 57, 57, 58, 58, 59, 59 }; public static int[] table_bulldozer_right = new int[] { 58, 58, 57, 57, 58, 58, 59, 59 };
public static int[] table_bulldozer_turn2l = new int[22] public static int[] table_bulldozer_turn2l = new int[]
{ {
58, 59, 59, 59, 60, 60, 60, 61, 61, 62, 58, 59, 59, 59, 60, 60, 60, 61, 61, 62,
62, 63, 63, 64, 64, 64, 65, 65, 65, 66, 62, 63, 63, 64, 64, 64, 65, 65, 65, 66,
66, 66 66, 66
}; };
public static int[] table_bulldozer_turn2r = new int[22] public static int[] table_bulldozer_turn2r = new int[]
{ {
66, 65, 65, 65, 64, 64, 64, 63, 63, 62, 66, 65, 65, 65, 64, 64, 64, 63, 63, 62,
62, 61, 61, 60, 60, 60, 59, 59, 59, 58, 62, 61, 61, 60, 60, 60, 59, 59, 59, 58,
58, 58 58, 58
}; };
public static int[] table_poisson_left = new int[8] { 82, 82, 81, 81, 82, 82, 83, 83 }; public static int[] table_poisson_left = new int[] { 82, 82, 81, 81, 82, 82, 83, 83 };
public static int[] table_poisson_right = new int[8] { 79, 79, 78, 78, 79, 79, 80, 80 }; public static int[] table_poisson_right = new int[] { 79, 79, 78, 78, 79, 79, 80, 80 };
public static int[] table_poisson_turn2l = new int[48] public static int[] table_poisson_turn2l = new int[]
{ {
79, 79, 80, 80, 84, 84, 85, 85, 86, 86, 79, 79, 80, 80, 84, 84, 85, 85, 86, 86,
87, 87, 88, 88, 83, 83, 82, 82, 83, 83, 87, 87, 88, 88, 83, 83, 82, 82, 83, 83,
@ -1113,7 +829,7 @@ namespace WindowsPhoneSpeedyBlupi
86, 86, 87, 87, 88, 88, 83, 83 86, 86, 87, 87, 88, 88, 83, 83
}; };
public static int[] table_poisson_turn2r = new int[48] public static int[] table_poisson_turn2r = new int[]
{ {
82, 82, 83, 83, 88, 88, 87, 87, 86, 86, 82, 82, 83, 83, 88, 88, 87, 87, 86, 86,
85, 85, 84, 84, 79, 79, 79, 79, 80, 80, 85, 85, 84, 84, 79, 79, 79, 79, 80, 80,
@ -1122,27 +838,27 @@ namespace WindowsPhoneSpeedyBlupi
86, 86, 85, 85, 84, 84, 79, 79 86, 86, 85, 85, 84, 84, 79, 79
}; };
public static int[] table_oiseau_left = new int[8] { 98, 99, 100, 101, 102, 103, 104, 105 }; public static int[] table_oiseau_left = new int[] { 98, 99, 100, 101, 102, 103, 104, 105 };
public static int[] table_oiseau_right = new int[8] { 90, 91, 92, 93, 94, 95, 96, 97 }; public static int[] table_oiseau_right = new int[] { 90, 91, 92, 93, 94, 95, 96, 97 };
public static int[] table_oiseau_turn2l = new int[10] { 106, 107, 108, 109, 110, 111, 112, 113, 105, 105 }; public static int[] table_oiseau_turn2l = new int[] { 106, 107, 108, 109, 110, 111, 112, 113, 105, 105 };
public static int[] table_oiseau_turn2r = new int[10] { 114, 115, 116, 117, 118, 119, 120, 121, 97, 97 }; public static int[] table_oiseau_turn2r = new int[] { 114, 115, 116, 117, 118, 119, 120, 121, 97, 97 };
public static int[] table_guepe_left = new int[6] { 195, 196, 197, 198, 197, 196 }; public static int[] table_guepe_left = new int[] { 195, 196, 197, 198, 197, 196 };
public static int[] table_guepe_right = new int[6] { 199, 200, 201, 202, 201, 200 }; public static int[] table_guepe_right = new int[] { 199, 200, 201, 202, 201, 200 };
public static int[] table_guepe_turn2l = new int[5] { 207, 206, 205, 204, 203 }; public static int[] table_guepe_turn2l = new int[] { 207, 206, 205, 204, 203 };
public static int[] table_guepe_turn2r = new int[5] { 203, 204, 205, 206, 207 }; public static int[] table_guepe_turn2r = new int[] { 203, 204, 205, 206, 207 };
public static int[] table_creature_left = new int[8] { 247, 248, 249, 250, 251, 250, 249, 248 }; public static int[] table_creature_left = new int[] { 247, 248, 249, 250, 251, 250, 249, 248 };
public static int[] table_creature_right = new int[8] { 247, 248, 249, 250, 251, 250, 249, 248 }; public static int[] table_creature_right = new int[] { 247, 248, 249, 250, 251, 250, 249, 248 };
public static int[] table_creature_turn2 = new int[152] public static int[] table_creature_turn2 = new int[]
{ {
244, 244, 244, 244, 244, 244, 244, 244, 243, 243, 244, 244, 244, 244, 244, 244, 244, 244, 243, 243,
242, 242, 242, 242, 242, 242, 242, 242, 243, 243, 242, 242, 242, 242, 242, 242, 242, 242, 243, 243,
@ -1162,43 +878,43 @@ namespace WindowsPhoneSpeedyBlupi
244, 244 244, 244
}; };
public static int[] table_blupih_left = new int[8] { 66, 67, 68, 67, 66, 69, 70, 69 }; public static int[] table_blupih_left = new int[] { 66, 67, 68, 67, 66, 69, 70, 69 };
public static int[] table_blupih_right = new int[8] { 61, 62, 63, 62, 61, 64, 65, 64 }; public static int[] table_blupih_right = new int[] { 61, 62, 63, 62, 61, 64, 65, 64 };
public static int[] table_blupih_turn2l = new int[26] public static int[] table_blupih_turn2l = new int[]
{ {
71, 71, 72, 72, 73, 73, 74, 74, 75, 75, 71, 71, 72, 72, 73, 73, 74, 74, 75, 75,
68, 68, 275, 275, 271, 271, 271, 271, 272, 272, 68, 68, 275, 275, 271, 271, 271, 271, 272, 272,
273, 273, 273, 273, 275, 275 273, 273, 273, 273, 275, 275
}; };
public static int[] table_blupih_turn2r = new int[26] public static int[] table_blupih_turn2r = new int[]
{ {
75, 75, 74, 74, 73, 73, 72, 72, 71, 71, 75, 75, 74, 74, 73, 73, 72, 72, 71, 71,
63, 63, 274, 274, 271, 271, 271, 271, 272, 272, 63, 63, 274, 274, 271, 271, 271, 271, 272, 272,
273, 273, 273, 273, 274, 274 273, 273, 273, 273, 274, 274
}; };
public static int[] table_blupit_left = new int[8] { 249, 249, 250, 250, 249, 249, 248, 248 }; public static int[] table_blupit_left = new int[] { 249, 249, 250, 250, 249, 249, 248, 248 };
public static int[] table_blupit_right = new int[8] { 238, 238, 237, 237, 238, 238, 239, 239 }; public static int[] table_blupit_right = new int[] { 238, 238, 237, 237, 238, 238, 239, 239 };
public static int[] table_blupit_turn2l = new int[24] public static int[] table_blupit_turn2l = new int[]
{ {
238, 238, 251, 251, 238, 238, 238, 239, 240, 241, 238, 238, 251, 251, 238, 238, 238, 239, 240, 241,
242, 243, 244, 245, 246, 247, 248, 249, 249, 249, 242, 243, 244, 245, 246, 247, 248, 249, 249, 249,
252, 252, 249, 249 252, 252, 249, 249
}; };
public static int[] table_blupit_turn2r = new int[24] public static int[] table_blupit_turn2r = new int[]
{ {
249, 249, 252, 252, 249, 249, 249, 248, 247, 246, 249, 249, 252, 252, 249, 249, 249, 248, 247, 246,
245, 244, 243, 242, 241, 240, 239, 238, 238, 238, 245, 244, 243, 242, 241, 240, 239, 238, 238, 238,
251, 251, 238, 238 251, 251, 238, 238
}; };
public static int[] table_explo1 = new int[39] public static int[] table_explo1 = new int[]
{ {
0, 0, 1, 1, 2, 2, 3, 3, 4, 3, 0, 0, 1, 1, 2, 2, 3, 3, 4, 3,
4, 4, 3, 4, 3, 3, 4, 4, 5, 5, 4, 4, 3, 4, 3, 3, 4, 4, 5, 5,
@ -1206,29 +922,29 @@ namespace WindowsPhoneSpeedyBlupi
7, 8, 8, 9, 9, 10, 10, 11, 11 7, 8, 8, 9, 9, 10, 10, 11, 11
}; };
public static int[] table_explo2 = new int[20] public static int[] table_explo2 = new int[]
{ {
12, -1, 13, 14, -1, 15, 13, -1, 14, 15, 12, -1, 13, 14, -1, 15, 13, -1, 14, 15,
12, -1, 13, 15, 14, 14, -1, 14, 15, 13 12, -1, 13, 15, 14, 14, -1, 14, 15, 13
}; };
public static int[] table_explo3 = new int[20] public static int[] table_explo3 = new int[]
{ {
32, 32, 34, 34, 32, 32, 34, 34, 32, 32, 32, 32, 34, 34, 32, 32, 34, 34, 32, 32,
34, 34, 32, 32, 35, 35, 32, 32, 35, 35 34, 34, 32, 32, 35, 35, 32, 32, 35, 35
}; };
public static int[] table_explo4 = new int[9] { 12, 13, 14, 15, 7, 8, 9, 10, 11 }; public static int[] table_explo4 = new int[] { 12, 13, 14, 15, 7, 8, 9, 10, 11 };
public static int[] table_explo5 = new int[12] public static int[] table_explo5 = new int[]
{ {
54, -1, 55, -1, 56, -1, 57, -1, 58, -1, 54, -1, 55, -1, 56, -1, 57, -1, 58, -1,
59, -1 59, -1
}; };
public static int[] table_explo6 = new int[6] { 54, 55, 56, 57, 58, 59 }; public static int[] table_explo6 = new int[] { 54, 55, 56, 57, 58, 59 };
public static int[] table_explo7 = new int[128] public static int[] table_explo7 = new int[]
{ {
60, 61, -1, 63, 64, 65, 62, 64, 62, 60, 60, 61, -1, 63, 64, 65, 62, 64, 62, 60,
62, -1, 65, -1, 60, 65, 63, 61, 62, -1, 62, -1, 65, -1, 60, 65, 63, 61, 62, -1,
@ -1245,23 +961,23 @@ namespace WindowsPhoneSpeedyBlupi
-1, 61, -1, -1, -1, 60, -1, -1 -1, 61, -1, -1, -1, 60, -1, -1
}; };
public static int[] table_explo8 = new int[5] { 7, 8, 9, 10, 11 }; public static int[] table_explo8 = new int[] { 7, 8, 9, 10, 11 };
public static int[] table_sploutch1 = new int[10] { 90, 91, 92, 93, 94, 95, 96, 97, 98, 99 }; public static int[] table_sploutch1 = new int[] { 90, 91, 92, 93, 94, 95, 96, 97, 98, 99 };
public static int[] table_sploutch2 = new int[13] public static int[] table_sploutch2 = new int[]
{ {
-1, -1, -1, 90, 91, 92, 93, 94, 95, 96, -1, -1, -1, 90, 91, 92, 93, 94, 95, 96,
97, 98, 99 97, 98, 99
}; };
public static int[] table_sploutch3 = new int[18] public static int[] table_sploutch3 = new int[]
{ {
-1, -1, -1, -1, -1, -1, -1, -1, 90, 91, -1, -1, -1, -1, -1, -1, -1, -1, 90, 91,
92, 93, 94, 95, 96, 97, 98, 99 92, 93, 94, 95, 96, 97, 98, 99
}; };
public static int[] table_tentacule = new int[45] public static int[] table_tentacule = new int[]
{ {
86, 85, 84, 83, 84, 85, 86, -1, 86, 85, 86, 85, 84, 83, 84, 85, 86, -1, 86, 85,
84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75,
@ -1270,7 +986,7 @@ namespace WindowsPhoneSpeedyBlupi
83, 84, 85, 86, -1 83, 84, 85, 86, -1
}; };
public static int[] table_bridge = new int[157] public static int[] table_bridge = new int[]
{ {
365, 366, 365, 366, 365, 366, 365, 366, 365, 366, 365, 366, 365, 366, 365, 366, 365, 366, 365, 366,
365, 366, 365, 366, 365, 366, 367, 367, 368, 368, 365, 366, 365, 366, 365, 366, 367, 367, 368, 368,
@ -1290,58 +1006,58 @@ namespace WindowsPhoneSpeedyBlupi
367, 367, 366, 366, 365, 365, 364 367, 367, 366, 366, 365, 365, 364
}; };
public static int[] table_pollution = new int[8] { 179, 180, 181, 182, 183, 184, 185, 186 }; public static int[] table_pollution = new int[] { 179, 180, 181, 182, 183, 184, 185, 186 };
public static int[] table_invertstart = new int[8] { 179, 180, 181, 182, 183, 184, 185, 186 }; public static int[] table_invertstart = new int[] { 179, 180, 181, 182, 183, 184, 185, 186 };
public static int[] table_invertstop = new int[8] { 186, 185, 184, 183, 182, 181, 180, 179 }; public static int[] table_invertstop = new int[] { 186, 185, 184, 183, 182, 181, 180, 179 };
public static int[] table_invertpanel = new int[8] { 187, 188, 189, 190, 191, 192, 193, 194 }; public static int[] table_invertpanel = new int[] { 187, 188, 189, 190, 191, 192, 193, 194 };
public static int[] table_plouf = new int[7] { 99, 100, 101, 102, 101, 100, 99 }; public static int[] table_plouf = new int[] { 99, 100, 101, 102, 101, 100, 99 };
public static int[] table_tiplouf = new int[3] { 244, 99, 244 }; public static int[] table_tiplouf = new int[] { 244, 99, 244 };
public static int[] table_blup = new int[20] public static int[] table_blup = new int[]
{ {
103, 104, 105, 106, 104, 103, 106, 105, 103, 104, 103, 104, 105, 106, 104, 103, 106, 105, 103, 104,
103, 105, 106, 103, 105, 106, 103, 104, 106, 105 103, 105, 106, 103, 105, 106, 103, 104, 106, 105
}; };
public static int[] table_follow1 = new int[26] public static int[] table_follow1 = new int[]
{ {
256, 256, 256, 257, 257, 258, 259, 260, 261, 262, 256, 256, 256, 257, 257, 258, 259, 260, 261, 262,
263, 264, 264, 265, 265, 265, 264, 264, 263, 262, 263, 264, 264, 265, 265, 265, 264, 264, 263, 262,
261, 260, 259, 258, 257, 257 261, 260, 259, 258, 257, 257
}; };
public static int[] table_follow2 = new int[5] { 256, 258, 260, 262, 264 }; public static int[] table_follow2 = new int[] { 256, 258, 260, 262, 264 };
public static int[] table_cle = new int[12] public static int[] table_cle = new int[]
{ {
122, 123, 124, 125, 126, 127, 128, 127, 126, 125, 122, 123, 124, 125, 126, 127, 128, 127, 126, 125,
124, 123 124, 123
}; };
public static int[] table_cle1 = new int[12] public static int[] table_cle1 = new int[]
{ {
209, 210, 211, 212, 213, 214, 215, 214, 213, 212, 209, 210, 211, 212, 213, 214, 215, 214, 213, 212,
211, 210 211, 210
}; };
public static int[] table_cle2 = new int[12] public static int[] table_cle2 = new int[]
{ {
220, 221, 222, 221, 220, 219, 218, 217, 216, 217, 220, 221, 222, 221, 220, 219, 218, 217, 216, 217,
218, 219 218, 219
}; };
public static int[] table_cle3 = new int[12] public static int[] table_cle3 = new int[]
{ {
229, 228, 227, 226, 225, 224, 223, 224, 225, 226, 229, 228, 227, 226, 225, 224, 223, 224, 225, 226,
227, 228 227, 228
}; };
public static int[] table_dynamitef = new int[100] public static int[] table_dynamitef = new int[]
{ {
253, 252, 254, 252, 252, 255, 252, 254, 253, 252, 253, 252, 254, 252, 252, 255, 252, 254, 253, 252,
253, 254, 255, 252, 255, 253, 252, 254, 252, 255, 253, 254, 255, 252, 255, 253, 252, 254, 252, 255,
@ -1355,7 +1071,7 @@ namespace WindowsPhoneSpeedyBlupi
255, 253, 253, 254, 255, 254, 252, 253, 254, 255 255, 253, 253, 254, 255, 254, 252, 253, 254, 255
}; };
public static int[] table_skate = new int[34] public static int[] table_skate = new int[]
{ {
129, 129, 129, 129, 130, 130, 130, 131, 131, 132, 129, 129, 129, 129, 130, 130, 130, 131, 131, 132,
132, 133, 133, 134, 134, 134, 135, 135, 135, 135, 132, 133, 133, 134, 134, 134, 135, 135, 135, 135,
@ -1363,14 +1079,14 @@ namespace WindowsPhoneSpeedyBlupi
130, 130, 130, 130 130, 130, 130, 130
}; };
public static int[] table_glu = new int[25] public static int[] table_glu = new int[]
{ {
168, 168, 169, 169, 170, 170, 171, 171, 170, 170, 168, 168, 169, 169, 170, 170, 171, 171, 170, 170,
169, 169, 168, 168, 169, 169, 169, 168, 168, 169, 169, 169, 168, 168, 169, 169, 169, 168, 168, 169,
169, 170, 170, 169, 168 169, 170, 170, 169, 168
}; };
public static int[] table_clear = new int[70] public static int[] table_clear = new int[]
{ {
40, 40, 40, 40, 41, 41, 41, 41, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 40, 40,
40, 40, 40, 40, 40, 41, 41, 41, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 40, 40,
@ -1381,7 +1097,7 @@ namespace WindowsPhoneSpeedyBlupi
47, 47, 46, 46, 47, 47, 46, 46, 47, 47 47, 47, 46, 46, 47, 47, 46, 46, 47, 47
}; };
public static int[] table_electro = new int[90] public static int[] table_electro = new int[]
{ {
266, 267, 266, 267, 266, 267, 266, 267, 266, 267, 266, 267, 266, 267, 266, 267, 266, 267, 266, 267,
266, 267, 266, 267, 266, 267, 266, 267, 266, 267, 266, 267, 266, 267, 266, 267, 266, 267, 266, 267,
@ -1394,11 +1110,11 @@ namespace WindowsPhoneSpeedyBlupi
46, 46, 47, 47, 46, 46, 47, 47, 46, 46 46, 46, 47, 47, 46, 46, 47, 47, 46, 46
}; };
public static int[] table_chenille = new int[6] { 311, 312, 313, 314, 315, 316 }; public static int[] table_chenille = new int[] { 311, 312, 313, 314, 315, 316 };
public static int[] table_chenillei = new int[6] { 316, 315, 314, 313, 312, 311 }; public static int[] table_chenillei = new int[] { 316, 315, 314, 313, 312, 311 };
public static int[] table_adapt_decor = new int[144] public static int[] table_adapt_decor = new int[]
{ {
153, 147, 148, 146, 40, 151, 150, 144, 39, 152, 153, 147, 148, 146, 40, 151, 150, 144, 39, 152,
149, 145, 38, 36, 37, 35, 153, 147, 148, 146, 149, 145, 38, 36, 37, 35, 153, 147, 148, 146,
@ -1417,7 +1133,7 @@ namespace WindowsPhoneSpeedyBlupi
251, 250, 256, 250 251, 250, 256, 250
}; };
public static int[] table_adapt_fromage = new int[32] public static int[] table_adapt_fromage = new int[]
{ {
-1, 265, 264, 268, 267, 273, 271, 275, 266, 272, -1, 265, 264, 268, 267, 273, 271, 275, 266, 272,
270, 274, 269, 277, 276, 278, -1, 286, 285, 289, 270, 274, 269, 277, 276, 278, -1, 286, 285, 289,
@ -1425,66 +1141,66 @@ namespace WindowsPhoneSpeedyBlupi
297, 299 297, 299
}; };
public static int[] table_shield = new int[16] public static int[] table_shield = new int[]
{ {
144, 145, 146, 147, 148, 149, 150, 151, 266, 267, 144, 145, 146, 147, 148, 149, 150, 151, 266, 267,
268, 269, 270, 271, 272, 273 268, 269, 270, 271, 272, 273
}; };
public static int[] table_shield_blupi = new int[16] public static int[] table_shield_blupi = new int[]
{ {
144, 145, 146, 147, 148, 149, 150, 151, 266, 267, 144, 145, 146, 147, 148, 149, 150, 151, 266, 267,
268, 269, 270, 271, 272, 273 268, 269, 270, 271, 272, 273
}; };
public static int[] table_power = new int[8] { 136, 137, 138, 139, 140, 141, 142, 143 }; public static int[] table_power = new int[] { 136, 137, 138, 139, 140, 141, 142, 143 };
public static int[] table_invert = new int[20] public static int[] table_invert = new int[]
{ {
187, 187, 187, 188, 189, 190, 191, 192, 193, 194, 187, 187, 187, 188, 189, 190, 191, 192, 193, 194,
187, 187, 187, 194, 193, 192, 191, 190, 189, 188 187, 187, 187, 194, 193, 192, 191, 190, 189, 188
}; };
public static int[] table_charge = new int[6] { 238, 239, 240, 241, 242, 243 }; public static int[] table_charge = new int[] { 238, 239, 240, 241, 242, 243 };
public static int[] table_magicloop = new int[5] { 152, 153, 154, 155, 156 }; public static int[] table_magicloop = new int[] { 152, 153, 154, 155, 156 };
public static int[] table_magictrack = new int[24] public static int[] table_magictrack = new int[]
{ {
152, 153, 154, 155, 156, 152, 153, 154, 155, 156, 152, 153, 154, 155, 156, 152, 153, 154, 155, 156,
157, 158, 159, 160, 157, 158, 159, 160, 161, 162, 157, 158, 159, 160, 157, 158, 159, 160, 161, 162,
163, 164, 165, 166 163, 164, 165, 166
}; };
public static int[] table_shieldloop = new int[5] { 274, 275, 276, 277, 278 }; public static int[] table_shieldloop = new int[] { 274, 275, 276, 277, 278 };
public static int[] table_shieldtrack = new int[20] public static int[] table_shieldtrack = new int[]
{ {
274, 275, 276, 277, 278, 274, 275, 276, 277, 278, 274, 275, 276, 277, 278, 274, 275, 276, 277, 278,
279, 280, 281, 282, 283, 284, 285, 286, 287, 288 279, 280, 281, 282, 283, 284, 285, 286, 287, 288
}; };
public static int[] table_drinkeffect = new int[5] { 274, 275, 276, 277, 278 }; public static int[] table_drinkeffect = new int[] { 274, 275, 276, 277, 278 };
public static int[] table_drinkoffset = new int[3] { 0, 7, 22 }; public static int[] table_drinkoffset = new int[] { 0, 7, 22 };
public static int[] table_tresortrack = new int[11] public static int[] table_tresortrack = new int[]
{ {
166, 165, 164, 163, 162, 161, 162, 163, 164, 165, 166, 165, 164, 163, 162, 161, 162, 163, 164, 165,
166 166
}; };
public static int[] table_decor_lave = new int[8] { 68, 69, 70, 71, 72, 71, 70, 69 }; public static int[] table_decor_lave = new int[] { 68, 69, 70, 71, 72, 71, 70, 69 };
public static int[] table_decor_piege1 = new int[16] public static int[] table_decor_piege1 = new int[]
{ {
374, 374, 373, 347, 373, 374, 374, 374, 373, 347, 374, 374, 373, 347, 373, 374, 374, 374, 373, 347,
347, 373, 374, 374, 374, 374 347, 373, 374, 374, 374, 374
}; };
public static int[] table_decor_piege2 = new int[4] { 374, 373, 347, 373 }; public static int[] table_decor_piege2 = new int[] { 374, 373, 347, 373 };
public static int[] table_decor_goutte = new int[48] public static int[] table_decor_goutte = new int[]
{ {
410, 409, 410, -1, -1, -1, -1, -1, -1, 410, 410, 409, 410, -1, -1, -1, -1, -1, -1, 410,
409, 408, 409, 410, -1, -1, -1, -1, -1, -1, 409, 408, 409, 410, -1, -1, -1, -1, -1, -1,
@ -1493,43 +1209,43 @@ namespace WindowsPhoneSpeedyBlupi
-1, 410, 409, 410, -1, -1, -1, -1 -1, 410, 409, 410, -1, -1, -1, -1
}; };
public static int[] table_decor_ecraseur = new int[10] { 317, 317, 318, 319, 320, 321, 322, 323, 323, 323 }; public static int[] table_decor_ecraseur = new int[] { 317, 317, 318, 319, 320, 321, 322, 323, 323, 323 };
public static int[] table_decor_scie = new int[6] { 378, 379, 380, 381, 382, 383 }; public static int[] table_decor_scie = new int[] { 378, 379, 380, 381, 382, 383 };
public static int[] table_decor_temp = new int[20] public static int[] table_decor_temp = new int[]
{ {
328, 328, 327, 327, 326, 326, 325, 325, 324, 324, 328, 328, 327, 327, 326, 326, 325, 325, 324, 324,
325, 325, 326, 326, 327, 329, 328, 328, -1, -1 325, 325, 326, 326, 327, 329, 328, 328, -1, -1
}; };
public static int[] table_decor_eau1 = new int[6] { 92, 93, 94, 95, 94, 93 }; public static int[] table_decor_eau1 = new int[] { 92, 93, 94, 95, 94, 93 };
public static int[] table_decor_eau2 = new int[6] { 91, 96, 97, 98, 97, 96 }; public static int[] table_decor_eau2 = new int[] { 91, 96, 97, 98, 97, 96 };
public static int[] table_decor_ventillog = new int[3] { 126, 127, 128 }; public static int[] table_decor_ventillog = new int[] { 126, 127, 128 };
public static int[] table_decor_ventillod = new int[3] { 129, 130, 131 }; public static int[] table_decor_ventillod = new int[] { 129, 130, 131 };
public static int[] table_decor_ventilloh = new int[3] { 132, 133, 134 }; public static int[] table_decor_ventilloh = new int[] { 132, 133, 134 };
public static int[] table_decor_ventillob = new int[3] { 135, 136, 137 }; public static int[] table_decor_ventillob = new int[] { 135, 136, 137 };
public static int[] table_decor_ventg = new int[4] { 110, 111, 112, 113 }; public static int[] table_decor_ventg = new int[] { 110, 111, 112, 113 };
public static int[] table_decor_ventd = new int[4] { 114, 115, 116, 117 }; public static int[] table_decor_ventd = new int[] { 114, 115, 116, 117 };
public static int[] table_decor_venth = new int[4] { 118, 119, 120, 121 }; public static int[] table_decor_venth = new int[] { 118, 119, 120, 121 };
public static int[] table_decor_ventb = new int[4] { 122, 123, 124, 125 }; public static int[] table_decor_ventb = new int[] { 122, 123, 124, 125 };
public static int[] table_marine = new int[11] public static int[] table_marine = new int[]
{ {
203, 204, 205, 206, 207, 208, 207, 206, 205, 204, 203, 204, 205, 206, 207, 208, 207, 206, 205, 204,
203 203
}; };
public static int[] table_ressort = new int[8] { 209, 210, 211, 212, 213, 212, 211, 210 }; public static int[] table_ressort = new int[] { 209, 210, 211, 212, 213, 212, 211, 210 };
public static int[] table_training1; public static int[] table_training1;
@ -1545,9 +1261,9 @@ namespace WindowsPhoneSpeedyBlupi
public static int[] world_terminal; public static int[] world_terminal;
static Tables() static
{ {
int[] array = new int[133] int[] array = new int[]
{ {
1, 3, 0, 50, -1, 0, 4, 4, 0, 50, 1, 3, 0, 50, -1, 0, 4, 4, 0, 50,
0, 0, 6, 6, 0, 50, 1, 0, 9, 9, 0, 0, 6, 6, 0, 50, 1, 0, 9, 9,
@ -1587,7 +1303,7 @@ namespace WindowsPhoneSpeedyBlupi
array[125] = MyResource.TX_TRAINING121; array[125] = MyResource.TX_TRAINING121;
array[131] = MyResource.TX_TRAINING122; array[131] = MyResource.TX_TRAINING122;
table_training1 = array; table_training1 = array;
int[] array2 = new int[31] int[] array2 = new int[]
{ {
9, 15, 0, 100, -1, 0, 16, 16, 0, 100, 9, 15, 0, 100, -1, 0, 16, 16, 0, 100,
-1, 0, 19, 21, 0, 100, -1, 0, 24, 31, -1, 0, 19, 21, 0, 100, -1, 0, 24, 31,
@ -1600,7 +1316,7 @@ namespace WindowsPhoneSpeedyBlupi
array2[23] = MyResource.TX_TRAINING204; array2[23] = MyResource.TX_TRAINING204;
array2[29] = MyResource.TX_TRAINING205; array2[29] = MyResource.TX_TRAINING205;
table_training2 = array2; table_training2 = array2;
int[] array3 = new int[67] int[] array3 = new int[]
{ {
16, 24, 36, 40, -2, 0, 16, 24, 36, 40, 16, 24, 36, 40, -2, 0, 16, 24, 36, 40,
-3, 0, 22, 25, 34, 34, -3, 0, 22, 31, -3, 0, 22, 25, 34, 34, -3, 0, 22, 31,
@ -1622,7 +1338,7 @@ namespace WindowsPhoneSpeedyBlupi
array3[59] = MyResource.TX_TRAINING310; array3[59] = MyResource.TX_TRAINING310;
array3[65] = MyResource.TX_TRAINING311; array3[65] = MyResource.TX_TRAINING311;
table_training3 = array3; table_training3 = array3;
int[] array4 = new int[31] int[] array4 = new int[]
{ {
7, 14, 0, 100, -4, 0, 7, 19, 0, 100, 7, 14, 0, 100, -4, 0, 7, 19, 0, 100,
-5, 0, 20, 22, 0, 100, -4, 0, 20, 22, -5, 0, 20, 22, 0, 100, -4, 0, 20, 22,
@ -1635,7 +1351,7 @@ namespace WindowsPhoneSpeedyBlupi
array4[23] = MyResource.TX_TRAINING404; array4[23] = MyResource.TX_TRAINING404;
array4[29] = MyResource.TX_TRAINING405; array4[29] = MyResource.TX_TRAINING405;
table_training4 = array4; table_training4 = array4;
table_decor_action = new int[519] table_decor_action = new int[]
{ {
1, 32, -4, 4, 4, -3, -4, 2, 4, 5, 1, 32, -4, 4, 4, -3, -4, 2, 4, 5,
-4, -1, 4, 2, -4, -4, 4, -3, -3, 2, -4, -1, 4, 2, -4, -4, 4, -3, -3, 2,
@ -1690,7 +1406,7 @@ namespace WindowsPhoneSpeedyBlupi
-5, 0, -6, 0, -7, 0, -7, 0, -6, 0, -5, 0, -6, 0, -7, 0, -7, 0, -6, 0,
-5, 0, -4, 0, -2, 0, -1, 0, 0 -5, 0, -4, 0, -2, 0, -1, 0, 0
}; };
table_explo_size = new int[100] table_explo_size = new int[]
{ {
128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,
@ -1703,7 +1419,7 @@ namespace WindowsPhoneSpeedyBlupi
64, 64, 64, 64, 64, 64, 64, 128, 128, 128, 64, 64, 64, 64, 64, 64, 64, 128, 128, 128,
64, 64, 64, 64, 64, 64, 64, 64, 64, 64 64, 64, 64, 64, 64, 64, 64, 64, 64, 64
}; };
world_terminal = new int[30] world_terminal = new int[]
{ {
0, 0, 158, 166, 159, 167, 160, 168, 161, 169, 0, 0, 158, 166, 159, 167, 160, 168, 161, 169,
162, 170, 163, 171, 164, 172, 165, 173, 309, 310, 162, 170, 163, 171, 164, 172, 165, 173, 309, 310,
@ -1712,4 +1428,3 @@ namespace WindowsPhoneSpeedyBlupi
} }
} }
}

View File

@ -0,0 +1,318 @@
package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.namespace;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.static_;
// WindowsPhoneSpeedyBlupi.Tables
@namespace(name = "WindowsPhoneSpeedyBlupi")
@static_
class Tables_table_blupi
{
private Tables_table_blupi() {
//Not meant to be instantiated.
}
public static int[] table_blupi = new int[]
{
35, 9, 0, 276, 277, 278, 279, 280, 281, 282,
283, 284, 1, 330, 0, 0, 0, 0, 0, 0,
23, 23, 23, 0, 0, 0, 0, 0, 0, 0,
0, 0, 23, 23, 23, 23, 23, 23, 0, 0,
0, 0, 0, 0, 0, 0, 23, 23, 23, 23,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
23, 23, 23, 23, 23, 0, 0, 0, 23, 23,
23, 0, 0, 0, 0, 0, 0, 133, 133, 0,
0, 0, 133, 133, 0, 0, 0, 0, 0, 0,
0, 133, 133, 0, 0, 0, 0, 23, 23, 23,
23, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 23, 23, 0, 0, 0, 0, 0, 23,
23, 23, 0, 0, 0, 135, 135, 136, 136, 137,
137, 137, 137, 137, 137, 137, 137, 138, 138, 137,
137, 137, 138, 138, 137, 137, 137, 138, 138, 137,
137, 137, 138, 138, 137, 137, 137, 137, 137, 137,
136, 136, 135, 135, 135, 0, 0, 0, 0, 0,
23, 23, 23, 0, 0, 133, 133, 0, 0, 0,
23, 23, 23, 23, 0, 0, 0, 0, 0, 0,
0, 23, 23, 0, 0, 0, 0, 0, 0, 0,
0, 133, 133, 0, 0, 0, 0, 0, 23, 23,
23, 23, 0, 0, 0, 135, 135, 136, 136, 137,
137, 137, 137, 137, 137, 137, 137, 138, 138, 137,
137, 137, 138, 138, 137, 137, 137, 138, 138, 137,
137, 137, 138, 138, 137, 137, 137, 138, 138, 137,
137, 137, 138, 138, 137, 137, 137, 138, 138, 137,
137, 137, 138, 138, 137, 137, 137, 138, 138, 137,
137, 137, 138, 138, 137, 137, 137, 138, 138, 137,
137, 137, 138, 138, 137, 137, 137, 137, 137, 137,
136, 136, 135, 135, 135, 0, 0, 0, 0, 0,
23, 23, 23, 0, 0, 133, 133, 0, 0, 0,
23, 23, 23, 23, 0, 0, 0, 0, 0, 0,
0, 23, 23, 0, 0, 0, 0, 0, 0, 0,
0, 133, 133, 0, 0, 0, 0, 0, 23, 23,
23, 23, 0, 0, 0, 2, 6, 0, 5, 6,
7, 8, 9, 10, 60, 3, 0, 19, 18, 19,
3, 6, 0, 1, 1, 2, 2, 3, 3, 4,
3, 0, 17, 18, 19, 5, 5, 4, 169, 26,
170, 170, 27, 59, 6, 0, 3, 3, 2, 2,
1, 1, 61, 5, 0, 34, 35, 34, 34, 33,
62, 2, 0, 35, 34, 6, 3, 2, 33, 34,
35, 7, 1, 0, 44, 8, 8, 0, 0, 169,
26, 170, 27, 171, 28, 172, 9, 6, 0, 5,
6, 7, 8, 9, 10, 10, 6, 0, 5, 6,
7, 8, 9, 10, 13, 6, 0, 41, 41, 42,
42, 43, 43, 86, 18, 0, 1, 1, 2, 2,
41, 41, 42, 42, 43, 43, 42, 42, 41, 41,
2, 2, 1, 1, 87, 26, 0, 135, 135, 137,
137, 231, 231, 231, 231, 230, 230, 231, 231, 231,
231, 230, 230, 231, 231, 231, 231, 230, 230, 137,
137, 135, 135, 11, 70, 0, 40, 40, 40, 40,
41, 41, 41, 41, 40, 40, 40, 40, 40, 40,
40, 41, 41, 41, 40, 40, 40, 40, 40, 40,
40, 41, 41, 41, 40, 40, 42, 42, 42, 43,
43, 43, 44, 44, 44, 45, 45, 45, 46, 46,
47, 47, 46, 46, 47, 47, 46, 46, 47, 47,
46, 46, 47, 47, 46, 46, 47, 47, 46, 46,
47, 47, 46, 46, 47, 47, 75, 1, 0, -1,
76, 70, 0, 40, 40, 40, 40, 41, 41, 41,
41, 40, 40, 40, 40, 40, 40, 40, 41, 41,
41, 40, 40, 40, 40, 40, 40, 40, 41, 41,
41, 40, 40, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 77, 110, 0, 324, 325, 324, 325,
324, 325, 324, 325, 324, 325, 324, 325, 324, 325,
324, 325, 324, 325, 324, 325, 324, 324, 325, 325,
326, 326, 327, 327, 328, 328, 329, 329, 330, 330,
331, 331, 332, 332, 333, 333, 334, 334, 333, 333,
332, 332, 331, 331, 330, 330, 329, 329, 329, 330,
330, 330, 331, 331, 331, 332, 332, 332, 333, 333,
333, 334, 334, 334, 333, 333, 333, 332, 332, 332,
331, 331, 331, 330, 330, 330, 329, 329, 329, 329,
329, 329, 329, 329, 329, 329, 329, 329, 329, 329,
329, 329, 329, 329, 329, 329, 329, 329, 329, 329,
329, 329, 329, 329, 329, 329, 78, 1, 0, -1,
79, 1, 0, -1, 80, 1, 0, -1, 81, 1,
0, -1, 14, 6, 0, 49, 50, 51, 52, 53,
54, 29, 6, 0, 126, 125, 124, 123, 122, 121,
28, 6, 0, 122, 122, 122, 125, 125, 125, 15,
1, 0, 61, 16, 8, 0, 61, 62, 63, 62,
61, 64, 65, 64, 17, 10, 0, 71, 71, 72,
72, 73, 73, 74, 74, 75, 75, 67, 1, 0,
315, 68, 12, 0, 296, 297, 298, 299, 300, 301,
302, 301, 300, 299, 298, 297, 69, 7, 0, 296,
310, 311, 312, 313, 314, 303, 18, 10, 0, 76,
76, 76, 76, 76, 76, 77, 77, 77, 77, 19,
14, 0, 76, 76, 77, 77, 78, 78, 79, 79,
80, 80, 81, 81, 39, 39, 20, 10, 0, 88,
88, 89, 89, 90, 90, 91, 91, 92, 92, 21,
12, 0, 93, 93, 94, 94, 95, 95, 96, 96,
97, 97, 98, 98, 22, 12, 0, 93, 93, 94,
94, 95, 95, 96, 96, 97, 97, 98, 98, 23,
10, 0, 105, 105, 106, 106, 107, 107, 108, 108,
109, 109, 24, 90, 0, 93, 96, 98, 94, 95,
93, 95, 98, 93, 94, 96, 96, 94, 94, 98,
98, 93, 93, 97, 97, 94, 94, 94, 96, 96,
96, 93, 93, 93, 93, 94, 94, 94, 94, 94,
97, 97, 97, 97, 97, 76, 76, 76, 76, 76,
76, 76, 76, 76, 76, 79, 79, 76, 76, 76,
76, 79, 79, 76, 76, 76, 76, 76, 76, 76,
76, 76, 76, 76, 76, 76, 76, 76, 76, 76,
76, 76, 76, 76, 76, 76, 76, 76, 76, 76,
76, 76, 76, 76, 76, 25, 8, 0, 111, 111,
110, 110, 111, 111, 112, 112, 26, 8, 0, 111,
111, 110, 110, 111, 111, 112, 112, 27, 7, 0,
112, 113, 114, 115, 116, 117, 118, 30, 12, 0,
25, 25, 29, 29, 46, 46, 47, 47, 46, 46,
29, 29, 31, 328, 0, 156, 156, 156, 156, 157,
157, 157, 157, 158, 158, 158, 158, 157, 157, 157,
157, 156, 156, 156, 156, 157, 157, 157, 157, 158,
158, 158, 158, 157, 157, 157, 157, 156, 156, 156,
156, 157, 157, 157, 157, 158, 158, 158, 158, 157,
157, 157, 157, 156, 156, 156, 156, 157, 157, 157,
157, 158, 158, 158, 158, 157, 157, 157, 157, 156,
156, 156, 156, 157, 157, 157, 157, 158, 158, 158,
158, 157, 157, 157, 157, 156, 156, 156, 156, 157,
157, 157, 157, 158, 158, 158, 158, 157, 157, 157,
157, 156, 156, 156, 156, 157, 157, 157, 157, 158,
158, 158, 158, 157, 157, 157, 157, 144, 144, 143,
143, 151, 151, 162, 162, 163, 163, 164, 164, 163,
163, 162, 162, 163, 163, 164, 164, 163, 163, 162,
162, 163, 163, 164, 164, 163, 163, 162, 162, 163,
163, 164, 164, 163, 163, 162, 162, 151, 151, 143,
143, 144, 144, 157, 157, 156, 156, 156, 156, 157,
157, 157, 157, 158, 158, 158, 158, 157, 157, 157,
157, 156, 156, 156, 156, 157, 157, 157, 157, 158,
158, 158, 158, 157, 157, 157, 157, 156, 156, 156,
156, 157, 157, 157, 157, 158, 158, 158, 158, 157,
157, 157, 157, 156, 156, 156, 156, 157, 157, 157,
157, 158, 158, 158, 158, 157, 157, 157, 157, 144,
144, 143, 143, 151, 151, 162, 162, 163, 163, 164,
164, 163, 163, 162, 162, 163, 163, 164, 164, 163,
163, 162, 162, 163, 163, 164, 164, 163, 163, 162,
162, 163, 163, 164, 164, 163, 163, 162, 162, 151,
151, 143, 143, 151, 151, 162, 162, 163, 163, 164,
164, 163, 163, 162, 162, 163, 163, 164, 164, 163,
163, 162, 162, 163, 163, 164, 164, 163, 163, 162,
162, 163, 163, 164, 164, 163, 163, 162, 162, 163,
163, 164, 164, 163, 163, 162, 162, 163, 163, 164,
164, 163, 163, 162, 162, 151, 151, 143, 143, 144,
144, 157, 157, 32, 12, 0, 144, 144, 145, 145,
146, 146, 145, 145, 144, 144, 143, 143, 33, 10,
0, 151, 151, 152, 152, 153, 153, 154, 154, 155,
155, 34, 10, 0, 157, 157, 165, 165, 165, 165,
166, 166, 166, 166, 36, 32, 0, 135, 177, 177,
178, 178, 179, 179, 180, 180, 179, 179, 178, 178,
179, 179, 180, 180, 179, 179, 178, 178, 179, 179,
180, 180, 179, 179, 178, 178, 177, 177, 135, 37,
140, 0, 182, 182, 182, 182, 208, 208, 208, 208,
208, 182, 182, 182, 182, 182, 182, 208, 208, 208,
208, 208, 194, 194, 194, 182, 182, 182, 182, 208,
208, 208, 208, 208, 182, 182, 182, 182, 182, 182,
208, 208, 208, 208, 182, 182, 182, 182, 182, 182,
182, 182, 194, 194, 194, 195, 195, 195, 196, 196,
196, 197, 197, 197, 198, 198, 198, 198, 197, 197,
197, 196, 196, 196, 195, 195, 195, 194, 194, 194,
182, 182, 182, 182, 208, 208, 208, 208, 182, 182,
182, 182, 194, 194, 194, 195, 195, 195, 196, 196,
196, 197, 197, 197, 198, 198, 198, 198, 197, 197,
197, 196, 196, 196, 195, 195, 195, 194, 194, 194,
182, 182, 182, 182, 208, 208, 208, 208, 182, 182,
182, 182, 210, 210, 211, 211, 211, 211, 211, 211,
210, 210, 85, 1, 0, 211, 38, 96, 0, 182,
183, 184, 185, 186, 187, 182, 183, 184, 185, 186,
187, 182, 183, 184, 185, 186, 187, 182, 182, 182,
182, 182, 182, 182, 183, 184, 185, 186, 187, 182,
182, 182, 182, 182, 182, 182, 182, 182, 182, 182,
182, 182, 183, 184, 185, 186, 187, 182, 182, 182,
182, 182, 182, 182, 182, 182, 182, 182, 182, 182,
182, 182, 182, 182, 182, 182, 183, 184, 185, 186,
187, 182, 182, 182, 182, 182, 182, 182, 182, 182,
182, 182, 182, 182, 182, 182, 182, 182, 182, 182,
182, 182, 182, 182, 182, 39, 14, 0, 194, 194,
195, 195, 196, 196, 197, 197, 198, 198, 199, 199,
200, 200, 40, 3, 0, 210, 211, 212, 41, 8,
0, 213, 213, 214, 214, 215, 215, 214, 214, 42,
20, 0, 17, 17, 18, 18, 19, 19, 1, 1,
215, 215, 214, 214, 213, 213, 212, 212, 211, 211,
210, 210, 43, 20, 0, 210, 210, 211, 211, 212,
212, 213, 213, 214, 214, 215, 215, 1, 1, 19,
19, 18, 18, 17, 17, 44, 29, 0, 1, 1,
222, 222, 222, 222, 223, 223, 224, 224, 225, 225,
225, 225, 225, 224, 223, 222, 222, 222, 223, 223,
224, 224, 225, 225, 225, 1, 1, 45, 29, 0,
1, 1, 222, 222, 222, 222, 223, 223, 224, 224,
225, 225, 225, 225, 225, 224, 223, 222, 222, 222,
223, 223, 224, 224, 225, 225, 225, 1, 1, 46,
32, 0, 1, 1, 227, 227, 228, 228, 229, 229,
228, 228, 227, 227, 226, 226, 227, 227, 228, 228,
229, 229, 228, 228, 227, 227, 226, 226, 227, 227,
228, 228, 1, 1, 47, 34, 0, 135, 135, 136,
136, 137, 137, 231, 231, 231, 231, 230, 230, 231,
231, 231, 231, 230, 230, 231, 231, 231, 231, 230,
230, 231, 231, 231, 231, 137, 137, 136, 136, 135,
135, 48, 40, 0, 0, 0, 135, 135, 136, 136,
137, 137, 232, 233, 232, 233, 232, 233, 232, 233,
232, 233, 232, 233, 232, 233, 232, 233, 232, 233,
232, 233, 232, 233, 232, 233, 137, 137, 136, 136,
135, 135, 0, 0, 65, 44, 0, 1, 1, 288,
288, 289, 289, 290, 290, 290, 289, 288, 288, 289,
289, 290, 290, 290, 289, 288, 288, 289, 289, 290,
290, 290, 289, 288, 288, 289, 289, 290, 290, 290,
289, 288, 288, 289, 289, 290, 290, 290, 289, 1,
1, 49, 32, 0, 234, 234, 235, 235, 236, 236,
235, 235, 234, 234, 235, 235, 236, 236, 235, 235,
234, 234, 235, 235, 236, 236, 235, 235, 234, 234,
235, 235, 236, 236, 235, 235, 50, 64, 0, 238,
238, 239, 239, 240, 240, 241, 241, 241, 241, 241,
241, 241, 241, 241, 241, 240, 240, 241, 241, 240,
240, 241, 241, 241, 241, 241, 241, 241, 241, 241,
241, 241, 241, 240, 240, 241, 241, 240, 240, 241,
241, 241, 241, 241, 241, 241, 241, 240, 240, 239,
239, 238, 238, 238, 238, 238, 238, 237, 237, 238,
238, 237, 237, 51, 8, 0, 238, 238, 237, 237,
238, 238, 239, 239, 52, 12, 0, 238, 239, 240,
241, 242, 243, 244, 245, 246, 247, 248, 249, 53,
6, 0, 251, 251, 238, 238, 238, 238, 54, 25,
0, 168, 168, 169, 169, 170, 170, 171, 171, 170,
170, 169, 169, 168, 168, 169, 169, 169, 168, 168,
169, 169, 170, 170, 169, 168, 55, 4, 0, 253,
253, 254, 254, 56, 64, 0, 1, 3, 270, 268,
1, 3, 270, 268, 1, 3, 270, 268, 1, 3,
270, 268, 1, 3, 270, 268, 1, 3, 270, 268,
1, 3, 270, 268, 1, 3, 270, 268, 1, 2,
3, 4, 270, 269, 268, 0, 1, 2, 3, 4,
270, 269, 268, 0, 1, 1, 2, 2, 3, 3,
4, 4, 270, 270, 269, 269, 268, 268, 0, 0,
57, 90, 0, 266, 267, 266, 267, 266, 267, 266,
267, 266, 267, 266, 267, 266, 267, 266, 267, 266,
267, 266, 267, 266, 267, 266, 267, 266, 267, 266,
267, 266, 267, 40, 40, 40, 40, 41, 41, 41,
41, 40, 40, 40, 40, 40, 40, 40, 41, 41,
41, 40, 40, 40, 40, 40, 40, 40, 41, 41,
41, 40, 40, 42, 42, 42, 43, 43, 43, 44,
44, 44, 45, 45, 45, 46, 46, 47, 47, 46,
46, 47, 47, 46, 46, 47, 47, 46, 46, 47,
47, 46, 46, 82, 10, 0, 0, 268, 268, 269,
269, 269, 269, 268, 268, 0, 58, 14, 0, 274,
274, 271, 271, 271, 271, 272, 272, 273, 273, 273,
273, 274, 274, 66, 16, 0, 291, 291, 292, 292,
293, 293, 294, 294, 295, 295, 294, 294, 293, 293,
292, 292, 72, 1, 0, 320, 73, 24, 0, 319,
319, 318, 318, 317, 317, 318, 318, 319, 319, 320,
320, 321, 321, 322, 322, 323, 323, 322, 322, 321,
321, 320, 320, 74, 128, 0, 1, 1, 2, 2,
3, 3, 4, 4, 270, 270, 269, 269, 268, 268,
0, 0, 1, 2, 3, 4, 270, 269, 268, 0,
1, 2, 3, 4, 270, 269, 268, 0, 1, 3,
270, 268, 2, 4, 269, 0, 1, 3, 270, 268,
2, 4, 269, 0, -1, 3, 270, -1, 2, -1,
269, 0, 1, -1, -1, 268, -1, -1, 269, -1,
-1, -1, -1, 270, -1, -1, 2, -1, -1, -1,
-1, -1, -1, 29, 46, 47, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 63, 92, 0, 263, 264, 265,
264, 263, 264, 265, 264, 263, 264, 265, 264, 263,
264, 265, 264, 263, 264, 265, 264, 263, 264, 265,
264, 263, 264, 265, 264, 263, 264, 265, 264, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 23,
23, 23, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 23, 23, 0, 0, 0, 0, 0, 0,
0, 133, 133, 0, 0, 0, 133, 133, 0, 0,
0, 0, 0, 0, 0, 133, 133, 0, 0, 0,
0, 23, 23, 23, 23, 0, 0, 0, 0, 64,
104, 0, 1, 1, 2, 2, 3, 3, 285, 286,
287, 286, 285, 286, 287, 286, 285, 286, 287, 286,
285, 286, 287, 286, 285, 286, 287, 286, 285, 286,
287, 286, 285, 286, 287, 286, 285, 286, 287, 286,
3, 3, 2, 2, 1, 1, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 23, 23, 23, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 23,
23, 0, 0, 0, 0, 0, 0, 0, 133, 133,
0, 0, 0, 133, 133, 0, 0, 0, 0, 0,
0, 0, 133, 133, 0, 0, 0, 0, 23, 23,
23, 23, 0, 0, 0, 0, 83, 60, 0, 1,
1, 288, 288, 289, 289, 290, 290, 290, 289, 288,
288, 289, 289, 290, 290, 290, 289, 288, 288, 289,
289, 290, 290, 290, 289, 288, 288, 289, 289, 290,
290, 290, 289, 288, 288, 289, 289, 290, 290, 290,
289, 288, 288, 289, 289, 290, 290, 290, 290, 290,
290, 290, 290, 290, 290, 290, 290, 1, 1, 84,
18, 0, 1, 1, 227, 227, 228, 228, 229, 229,
228, 228, 227, 227, 226, 226, 227, 227, 1, 1,
0
};
}

View File

@ -1,12 +1,23 @@
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439 package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
// WindowsPhoneSpeedyBlupi.Text
using WindowsPhoneSpeedyBlupi;
namespace WindowsPhoneSpeedyBlupi // WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
{
public static class Text import static com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.default_.default_;
import com.openeggbert.jdotnet.System.string;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.ref;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.namespace;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.static_;
// WindowsPhoneSpeedyBlupi.Text
@namespace(name = "WindowsPhoneSpeedyBlupi")
@static_
public class Text
{ {
private static short[] table_char = new short[1536] private Text() {
//Not meant to be instantiated;
}
private static short[] table_char = new short[]
{ {
0, 0, 0, -1, 0, 0, 1, 0, 0, -1, 0, 0, 0, -1, 0, 0, 1, 0, 0, -1,
0, 0, 2, 0, 0, -1, 0, 0, 3, 0, 0, 0, 2, 0, 0, -1, 0, 0, 3, 0,
@ -164,13 +175,13 @@ namespace WindowsPhoneSpeedyBlupi
1, 0, 0, -1, 0, 0 1, 0, 0, -1, 0, 0
}; };
private static short[] table_accents = new short[15] private static short[] table_accents = new short[]
{ {
252, 224, 226, 233, 232, 235, 234, 239, 238, 244, 252, 224, 226, 233, 232, 235, 234, 239, 238, 244,
249, 251, 228, 246, 231 249, 251, 228, 246, 231
}; };
private static short[] table_width = new short[128] private static short[] table_width = new short[]
{ {
32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
32, 32, 32, 32, 14, 13, 15, 15, 15, 15, 32, 32, 32, 32, 14, 13, 15, 15, 15, 15,
@ -187,7 +198,7 @@ namespace WindowsPhoneSpeedyBlupi
16, 15, 14, 10, 5, 11, 16, 0 16, 15, 14, 10, 5, 11, 16, 0
}; };
public static void DrawTextLeft(Pixmap pixmap, TinyPoint pos, string text, double size) public static void DrawTextLeft(Pixmap pixmap, TinyPoint pos, String text, double size)
{ {
if (!string.IsNullOrEmpty(text)) if (!string.IsNullOrEmpty(text))
{ {
@ -195,52 +206,52 @@ namespace WindowsPhoneSpeedyBlupi
} }
} }
public static void DrawText(Pixmap pixmap, TinyPoint pos, string text, double size) public static void DrawText(Pixmap pixmap, TinyPoint pos, String text, double size)
{ {
if (!string.IsNullOrEmpty(text)) if (!string.IsNullOrEmpty(text))
{ {
foreach (char car in text) for (char car : text.toCharArray())
{ {
DrawChar(pixmap, ref pos, car, size); DrawChar(pixmap, pos, car, size);
} }
} }
} }
public static void DrawTextPente(Pixmap pixmap, TinyPoint pos, string text, int pente, double size) public static void DrawTextPente(Pixmap pixmap, TinyPoint pos, String text, int pente, double size)
{ {
if (!string.IsNullOrEmpty(text)) if (!string.IsNullOrEmpty(text))
{ {
int y = pos.Y; int y = pos.Y;
int num = 0; int num = 0;
foreach (char c in text) for (char c : text.toCharArray())
{ {
int charWidth = GetCharWidth(c, size); int charWidth = GetCharWidth(c, size);
DrawChar(pixmap, ref pos, c, size); DrawChar(pixmap, pos, c, size);
num += charWidth; num += charWidth;
pos.Y = y + num / pente; pos.Y = y + num / pente;
} }
} }
} }
public static void DrawTextCenter(Pixmap pixmap, TinyPoint pos, string text, double size) public static void DrawTextCenter(Pixmap pixmap, TinyPoint pos, String text, double size)
{ {
if (!string.IsNullOrEmpty(text)) if (!string.IsNullOrEmpty(text))
{ {
TinyPoint pos2 = default(TinyPoint); TinyPoint pos2 = default_(new TinyPoint());
pos2.X = pos.X - GetTextWidth(text, size) / 2; pos2.X = pos.X - GetTextWidth(text, size) / 2;
pos2.Y = pos.Y; pos2.Y = pos.Y;
DrawText(pixmap, pos2, text, size); DrawText(pixmap, pos2, text, size);
} }
} }
public static int GetTextWidth(string text, double size) public static int GetTextWidth(String text, double size)
{ {
if (string.IsNullOrEmpty(text)) if (string.IsNullOrEmpty(text))
{ {
return 0; return 0;
} }
int num = 0; int num = 0;
foreach (char c in text) for (char c : text.toCharArray())
{ {
num += GetCharWidth(c, size); num += GetCharWidth(c, size);
} }
@ -263,9 +274,9 @@ namespace WindowsPhoneSpeedyBlupi
return c; return c;
} }
private static void DrawChar(Pixmap pixmap, ref TinyPoint pos, char car, double size) private static void DrawChar(Pixmap pixmap, @ref TinyPoint pos, char car, double size)
{ {
TinyPoint pos2 = default(TinyPoint); TinyPoint pos2 = default_(new TinyPoint());
int num = (short)car * 6; int num = (short)car * 6;
int rank = table_char[num]; int rank = table_char[num];
pos2.X = pos.X + table_char[num + 1]; pos2.X = pos.X + table_char[num + 1];
@ -292,4 +303,3 @@ namespace WindowsPhoneSpeedyBlupi
} }
} }
}

View File

@ -1,18 +1,35 @@
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439 package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.namespace;
// WindowsPhoneSpeedyBlupi.TinyPoint // WindowsPhoneSpeedyBlupi.TinyPoint
@namespace(name = "WindowsPhoneSpeedyBlupi")
@AllArgsConstructor
@NoArgsConstructor
public class TinyPoint extends com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.struct<TinyPoint> {
namespace WindowsPhoneSpeedyBlupi public int X;
{
public struct TinyPoint
{
public int X;
public int Y; public int Y;
public override string ToString() @Override
{ public String toString() {
return string.Format("{0};{1}", X, Y); return X + ";" + Y;
}
} }
} @Override
public TinyPoint copy() {
return new TinyPoint(X, Y);
}
@Override
public TinyPoint reset() {
this.X = 0;
this.Y = 0;
return this;
}
}

View File

@ -1,38 +1,46 @@
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439 package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439\
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.namespace;
import lombok.ToString;
// WindowsPhoneSpeedyBlupi.TinyRect // WindowsPhoneSpeedyBlupi.TinyRect
@namespace(name = "WindowsPhoneSpeedyBlupi")
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class TinyRect extends com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.struct<TinyRect> {
namespace WindowsPhoneSpeedyBlupi public int Left;
{
public struct TinyRect
{
public int Left;
public int Right; public int Right;
public int Top; public int Top;
public int Bottom; public int Bottom;
public int Width public int Width() {
{ return Right - Left;
get
{
return Right - Left;
}
}
public int Height
{
get
{
return Bottom - Top;
}
}
public override string ToString()
{
return string.Format("{0};{1};{2};{3}", Left, Top, Right, Bottom);
}
} }
} public int Height() {
return Bottom - Top;
}
@Override
public TinyRect copy() {
return new TinyRect(Left, Right, Top, Bottom);
}
@Override
public TinyRect reset() {
this.Left = 0;
this.Right = 0;
this.Top = 0;
this.Bottom = 0;
return this;
}
}

View File

@ -1,70 +1,75 @@
using System; package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
using System.IO;
//import com.openeggbert.jdotnet.System.*;
//import com.openeggbert.jdotnet.System.IO.*;
namespace WindowsPhoneSpeedyBlupi
{
public class TrialMode public class TrialMode
{ {
private static DateTime trialStartTime;
public static void InitializeTrialMode() static boolean IsTrialModeEnabled() {
{ throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
// Assuming trial mode starts when the game is launched }
trialStartTime = DateTime.Now; // private static DateTime trialStartTime;
} //
// public static void InitializeTrialMode()
public static Boolean IsTrialModeExpired() // {
{ // // Assuming trial mode starts when the game is launched
return IsTrialMode7DaysLimitExpired() || IsTrialMode10MinutesLimitExpired(); // trialStartTime = DateTime.Now;
} // }
private static bool IsTrialMode10MinutesLimitExpired() //
{ // public static Boolean IsTrialModeExpired()
// Example: Trial expires after 10 minutes // {
var expired = (DateTime.Now - trialStartTime).TotalMinutes > 10; // return IsTrialMode7DaysLimitExpired() || IsTrialMode10MinutesLimitExpired();
return expired; // }
} // private static boolean IsTrialMode10MinutesLimitExpired()
private static bool IsTrialMode7DaysLimitExpired() // {
{ // // Example: Trial expires after 10 minutes
// Save trial expiration status to a file or settings // var expired = (DateTime.Now - trialStartTime).TotalMinutes > 10;
const string TRIAL_END_TIME_TXT = "trialEndTime.txt"; // return expired;
var trialEndTime = File.Exists(TRIAL_END_TIME_TXT) ? DateTime.Parse(File.ReadAllText(TRIAL_END_TIME_TXT)) : DateTime.MinValue; // }
// private static boolean IsTrialMode7DaysLimitExpired()
var expired = trialEndTime != DateTime.MinValue && DateTime.Now > trialEndTime; // {
if (expired) // // Save trial expiration status to a file or settings
{ // const string TRIAL_END_TIME_TXT = "trialEndTime.txt";
return true; // Trial period is over // var trialEndTime = File.Exists(TRIAL_END_TIME_TXT) ? DateTime.Parse(File.ReadAllText(TRIAL_END_TIME_TXT)) : DateTime.MinValue;
} //
// var expired = trialEndTime != DateTime.MinValue && DateTime.Now > trialEndTime;
// Example of setting trial end time (e.g., 7 days from now) // if (expired)
if (!File.Exists(TRIAL_END_TIME_TXT)) // {
{ // return true; // Trial period is over
File.WriteAllText(TRIAL_END_TIME_TXT, DateTime.Now.AddDays(7).ToString()); // }
} //
// // Example of setting trial end time (e.g., 7 days from now)
return false; // Trial period still active // if (!File.Exists(TRIAL_END_TIME_TXT))
} // {
private static int trialModeEnabled = -1; // File.WriteAllText(TRIAL_END_TIME_TXT, DateTime.Now.AddDays(7).ToString());
public static bool IsTrialModeEnabled() // }
{ //
if(trialModeEnabled == 1) // return false; // Trial period still active
{ // }
return true; // private static int trialModeEnabled = -1;
} // public static boolean IsTrialModeEnabled()
// {
if (trialModeEnabled == 0) // if(trialModeEnabled == 1)
{ // {
return false; // return true;
} // }
//
const string TRIAL_MODE_ENABLED_TXT = "trialModeEnabled.txt"; // if (trialModeEnabled == 0)
var trialModeEnabledString = File.Exists(TRIAL_MODE_ENABLED_TXT) ? File.ReadAllText(TRIAL_MODE_ENABLED_TXT) : "0"; // {
var trialModeEnabledLocal = trialModeEnabledString.Equals("1"); // return false;
trialModeEnabled = trialModeEnabledLocal ? 1 : 0; // }
//
return trialModeEnabledLocal; // const string TRIAL_MODE_ENABLED_TXT = "trialModeEnabled.txt";
} // var trialModeEnabledString = File.Exists(TRIAL_MODE_ENABLED_TXT) ? File.ReadAllText(TRIAL_MODE_ENABLED_TXT) : "0";
// var trialModeEnabledLocal = trialModeEnabledString.Equals("1");
// trialModeEnabled = trialModeEnabledLocal ? 1 : 0;
//
// return trialModeEnabledLocal;
// }
} }
}

View File

@ -1,40 +1,42 @@
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439 package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
// WindowsPhoneSpeedyBlupi.Worlds
using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.IO.IsolatedStorage;
using System.Text;
using Microsoft.Xna.Framework;
using WindowsPhoneSpeedyBlupi;
namespace WindowsPhoneSpeedyBlupi // WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
{ // WindowsPhoneSpeedyBlupi.Worlds
public static class Worlds import com.openeggbert.jdotnet.System.*;
import com.openeggbert.jdotnet.System.Diagnostics.*;
import com.openeggbert.jdotnet.System.Globalization.*;
import com.openeggbert.jdotnet.System.IO.*;
import com.openeggbert.jdotnet.System.IO.IsolatedStorage.*;
import com.openeggbert.jdotnet.System.Text.*;
import com.openeggbert.jxna.Microsoft.Xna.Framework.*;
import com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi.*;
import static com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.default_.default_;
import java.util.Locale;
import lombok.Getter;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.namespace;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.static_;
@namespace(name = "WindowsPhoneSpeedyBlupi")
@static_
public class Worlds
{ {
private Worlds() {
//Not meant to be instantiated.
}
private static StringBuilder output = new StringBuilder(); private static StringBuilder output = new StringBuilder();
private static string GameDataFilename @Getter
{ private static final String GameDataFilename = "SpeedyBlupi";
get
{
return "SpeedyBlupi";
}
}
private static string CurrentGameFilename @Getter
{ private static final String CurrentGameFilename = "CurrentGame";
get
{
return "CurrentGame";
}
}
public static string[] ReadWorld(int gamer, int rank) public static String[] ReadWorld(int gamer, int rank)
{ {
string worldFilename = GetWorldFilename(gamer, rank); String worldFilename = GetWorldFilename(gamer, rank);
string text = null; String text = null;
try try
{ {
Stream stream = TitleContainer.OpenStream(worldFilename); Stream stream = TitleContainer.OpenStream(worldFilename);
@ -42,7 +44,7 @@ namespace WindowsPhoneSpeedyBlupi
text = streamReader.ReadToEnd(); text = streamReader.ReadToEnd();
stream.Close(); stream.Close();
} }
catch catch (Exception_ e)
{ {
Debug.Write("Fatal error. Loading world failed: " + worldFilename + "\n"); Debug.Write("Fatal error. Loading world failed: " + worldFilename + "\n");
Environment.Exit(1); Environment.Exit(1);
@ -51,15 +53,15 @@ namespace WindowsPhoneSpeedyBlupi
{ {
return null; return null;
} }
return text.Split('\n'); return text.split("\n");
} }
private static string GetWorldFilename(int gamer, int rank) private static String GetWorldFilename(int gamer, int rank)
{ {
return string.Format("worlds/world{0}.txt", rank.ToString("d3")); return string.Format("worlds/world{0}.txt", int_.of(rank).ToString("d3"));
} }
public static bool ReadGameData(byte[] data) public static boolean ReadGameData(byte[] data)
{ {
IsolatedStorageFile userStoreForApplication = IsolatedStorageFile.GetUserStoreForApplication(); IsolatedStorageFile userStoreForApplication = IsolatedStorageFile.GetUserStoreForApplication();
if (userStoreForApplication.FileExists(GameDataFilename)) if (userStoreForApplication.FileExists(GameDataFilename))
@ -69,13 +71,13 @@ namespace WindowsPhoneSpeedyBlupi
{ {
isolatedStorageFileStream = userStoreForApplication.OpenFile(GameDataFilename, FileMode.Open); isolatedStorageFileStream = userStoreForApplication.OpenFile(GameDataFilename, FileMode.Open);
} }
catch (IsolatedStorageException) catch (IsolatedStorageException e)
{ {
return false; return false;
} }
if (isolatedStorageFileStream != null) if (isolatedStorageFileStream != null)
{ {
int count = Math.Min(data.Length, (int)isolatedStorageFileStream.Length); int count = Math_.Min(data.length, (int)isolatedStorageFileStream.Length);
isolatedStorageFileStream.Read(data, 0, count); isolatedStorageFileStream.Read(data, 0, count);
isolatedStorageFileStream.Close(); isolatedStorageFileStream.Close();
return true; return true;
@ -90,7 +92,7 @@ namespace WindowsPhoneSpeedyBlupi
IsolatedStorageFileStream isolatedStorageFileStream = userStoreForApplication.OpenFile(GameDataFilename, FileMode.Create); IsolatedStorageFileStream isolatedStorageFileStream = userStoreForApplication.OpenFile(GameDataFilename, FileMode.Create);
if (isolatedStorageFileStream != null) if (isolatedStorageFileStream != null)
{ {
isolatedStorageFileStream.Write(data, 0, data.Length); isolatedStorageFileStream.Write(data, 0, data.length);
isolatedStorageFileStream.Close(); isolatedStorageFileStream.Close();
} }
} }
@ -102,12 +104,12 @@ namespace WindowsPhoneSpeedyBlupi
{ {
userStoreForApplication.DeleteFile(CurrentGameFilename); userStoreForApplication.DeleteFile(CurrentGameFilename);
} }
catch catch (Exception_ e)
{ {
} }
} }
public static string ReadCurrentGame() public static String ReadCurrentGame()
{ {
IsolatedStorageFile userStoreForApplication = IsolatedStorageFile.GetUserStoreForApplication(); IsolatedStorageFile userStoreForApplication = IsolatedStorageFile.GetUserStoreForApplication();
if (userStoreForApplication.FileExists(CurrentGameFilename)) if (userStoreForApplication.FileExists(CurrentGameFilename))
@ -117,348 +119,354 @@ namespace WindowsPhoneSpeedyBlupi
{ {
isolatedStorageFileStream = userStoreForApplication.OpenFile(CurrentGameFilename, FileMode.Open); isolatedStorageFileStream = userStoreForApplication.OpenFile(CurrentGameFilename, FileMode.Open);
} }
catch (IsolatedStorageException) catch (IsolatedStorageException e)
{ {
return null; return null;
} }
if (isolatedStorageFileStream != null) if (isolatedStorageFileStream != null)
{ {
byte[] array = new byte[isolatedStorageFileStream.Length]; byte[] array = new byte[isolatedStorageFileStream.Length];
isolatedStorageFileStream.Read(array, 0, array.Length); isolatedStorageFileStream.Read(array, 0, array.length);
isolatedStorageFileStream.Close(); isolatedStorageFileStream.Close();
return Encoding.UTF8.GetString(array, 0, array.Length); return Encoding.UTF8.GetString(array, 0, array.length);
} }
} }
return null; return null;
} }
public static void WriteCurrentGame(string data) public static void WriteCurrentGame(String data)
{ {
IsolatedStorageFile userStoreForApplication = IsolatedStorageFile.GetUserStoreForApplication(); IsolatedStorageFile userStoreForApplication = IsolatedStorageFile.GetUserStoreForApplication();
IsolatedStorageFileStream isolatedStorageFileStream = userStoreForApplication.OpenFile(CurrentGameFilename, FileMode.Create); IsolatedStorageFileStream isolatedStorageFileStream = userStoreForApplication.OpenFile(CurrentGameFilename, FileMode.Create);
if (isolatedStorageFileStream != null) if (isolatedStorageFileStream != null)
{ {
isolatedStorageFileStream.Write(Encoding.UTF8.GetBytes(data), 0, data.Length); isolatedStorageFileStream.Write(Encoding.UTF8.GetBytes(data), 0, data.length());
isolatedStorageFileStream.Close(); isolatedStorageFileStream.Close();
} }
} }
public static void GetIntArrayField(string[] lines, string section, int rank, string name, int[] array) public static void GetIntArrayField(String[] lines, String section, int rank, String name, int[] array)
{ {
foreach (string text in lines) for (String text : lines)
{ {
if (!text.StartsWith(section + ":") || rank-- != 0) if (!text.startsWith(section + ":") || rank-- != 0)
{ {
continue; continue;
} }
int num = text.IndexOf(name + "="); int num = text.indexOf(name + "=");
if (num == -1) if (num == -1)
{ {
break; break;
} }
num += name.Length + 1; num += name.length() + 1;
int num2 = text.IndexOf(" ", num); int num2 = text.indexOf(" ", num);
if (num2 == -1) if (num2 == -1)
{ {
break; break;
} }
string[] array2 = text.Substring(num, num2 - num).Split(','); String[] array2 = text.substring(num, num2 - num).split(",");
for (int j = 0; j < array2.Length; j++) for (int j = 0; j < array2.length; j++)
{ {
int result;
if (int.TryParse(array2[j], out result)) try {
{ int result = Integer.parseInt(array2[j]);
array[j] = result; array[j] = result;
} } catch (NumberFormatException e) {
else
{
array[j] = 0; array[j] = 0;
} }
} }
} }
} }
public static bool GetBoolField(string[] lines, string section, int rank, string name) public static boolean GetBoolField(String[] lines, String section, int rank, String name)
{ {
foreach (string text in lines) for (String text : lines)
{ {
if (text.StartsWith(section + ":") && rank-- == 0) if (text.startsWith(section + ":") && rank-- == 0)
{ {
int num = text.IndexOf(name + "="); int num = text.indexOf(name + "=");
if (num == -1) if (num == -1)
{ {
return false; return false;
} }
num += name.Length + 1; num += name.length() + 1;
int num2 = text.IndexOf(" ", num); int num2 = text.indexOf(" ", num);
if (num2 == -1) if (num2 == -1)
{ {
return false; return false;
} }
string value = text.Substring(num, num2 - num); String value = text.substring(num, num2 - num);
bool result;
if (bool.TryParse(value, out result)) boolean result;
{ try {
result = Boolean.parseBoolean(value);
return result; return result;
} catch (Exception_ e) {
} }
return false; return false;
} }
} }
return false; return false;
} }
public static int GetIntField(string[] lines, string section, int rank, string name) public static int GetIntField(String[] lines, String section, int rank, String name)
{ {
foreach (string text in lines) for (String text : lines)
{ {
if (text.StartsWith(section + ":") && rank-- == 0) if (text.startsWith(section + ":") && rank-- == 0)
{ {
int num = text.IndexOf(name + "="); int num = text.indexOf(name + "=");
if (num == -1) if (num == -1)
{ {
return 0; return 0;
} }
num += name.Length + 1; num += name.length() + 1;
int num2 = text.IndexOf(" ", num); int num2 = text.indexOf(" ", num);
if (num2 == -1) if (num2 == -1)
{ {
return 0; return 0;
} }
string s = text.Substring(num, num2 - num); String s = text.substring(num, num2 - num);
int result; try {
if (int.TryParse(s, out result)) return Integer.parseInt(s);
{ } catch (NumberFormatException e) {
return result; return 0;
} }
return 0;
} }
} }
return 0; return 0;
} }
public static double GetDoubleField(string[] lines, string section, int rank, string name) public static double GetDoubleField(String[] lines, String section, int rank, String name)
{ {
foreach (string text in lines) for (String text : lines)
{ {
if (text.StartsWith(section + ":") && rank-- == 0) if (text.startsWith(section + ":") && rank-- == 0)
{ {
int num = text.IndexOf(name + "="); int num = text.indexOf(name + "=");
if (num == -1) if (num == -1)
{ {
return 0.0; return 0.0;
} }
num += name.Length + 1; num += name.length() + 1;
int num2 = text.IndexOf(" ", num); int num2 = text.indexOf(" ", num);
if (num2 == -1) if (num2 == -1)
{ {
return 0.0; return 0.0;
} }
string s = text.Substring(num, num2 - num); String s = text.substring(num, num2 - num);
double result; try {
if (double.TryParse(s, out result)) return Double.parseDouble(s);
{ } catch (NumberFormatException e) {
return result; return 0.0;
} }
return 0.0;
} }
} }
return 0.0; return 0.0;
} }
public static TinyPoint GetPointField(string[] lines, string section, int rank, string name) public static TinyPoint GetPointField(String[] lines, String section, int rank, String name)
{ {
foreach (string text in lines) for (String text : lines)
{ {
if (text.StartsWith(section + ":") && rank-- == 0) if (text.startsWith(section + ":") && rank-- == 0)
{ {
int num = text.IndexOf(name + "="); int num = text.indexOf(name + "=");
if (num == -1) if (num == -1)
{ {
return default(TinyPoint); return default_(new TinyPoint());
} }
num += name.Length + 1; num += name.length() + 1;
int num2 = text.IndexOf(";", num); int num2 = text.indexOf(";", num);
if (num2 == -1) if (num2 == -1)
{ {
return default(TinyPoint); return default_(new TinyPoint());
} }
int num3 = text.IndexOf(" ", num); int num3 = text.indexOf(" ", num);
if (num3 == -1) if (num3 == -1)
{ {
return default(TinyPoint); return default_(new TinyPoint());
} }
string s = text.Substring(num, num2 - num); String s = text.substring(num, num2 - num);
string s2 = text.Substring(num2 + 1, num3 - num2 - 1); String s2 = text.substring(num2 + 1, num3 - num2 - 1);
int result; int result;
if (!int.TryParse(s, out result)) try {
{ result = Integer.parseInt(s);
return default(TinyPoint); } catch (NumberFormatException e) {
return new TinyPoint();
} }
int result2; int result2;
if (!int.TryParse(s2, out result2)) try {
{ result2 = Integer.parseInt(s2);
return default(TinyPoint); } catch (NumberFormatException e) {
return new TinyPoint();
} }
TinyPoint result3 = default(TinyPoint);
TinyPoint result3 = default_(new TinyPoint());
result3.X = result; result3.X = result;
result3.Y = result2; result3.Y = result2;
return result3; return result3;
} }
} }
return default(TinyPoint); /**/
return default_(new TinyPoint());
} }
public static int? GetDecorField(string[] lines, string section, int x, int y) public static Integer GetDecorField(String[] lines, String section, int x, int y) {
{ for (int i = 0; i < lines.length; i++) {
for (int i = 0; i < lines.Length; i++) String text = lines[i];
{ if (text.startsWith(section + ":")) {
string text = lines[i]; text = lines[i + 1 + x];
if (text.StartsWith(section + ":")) String[] array = text.split(",");
{ if (string.IsNullOrEmpty(array[y])) {
text = lines[i + 1 + x]; return -1;
string[] array = text.Split(','); }
if (string.IsNullOrEmpty(array[y])) try {
{ return Integer.parseInt(array[y]);
return -1; } catch (NumberFormatException e) {
}
int result;
if (int.TryParse(array[y], out result))
{
return result;
}
return null; return null;
} }
} }
return null;
} }
return null;
}
public static void GetDoorsField(string[] lines, string section, int[] doors) public static void GetDoorsField(String[] lines, String section, int[] doors)
{ {
foreach (string text in lines) for (String text : lines)
{ {
if (!text.StartsWith(section + ":")) if (!text.startsWith(section + ":"))
{ {
continue; continue;
} }
string[] array = text.Substring(section.Length + 2).Split(','); String[] array = text.substring(section.length() + 2).split(",");
for (int j = 0; j < array.Length; j++) for (int j = 0; j < array.length; j++)
{ {
int result; int result;
if (string.IsNullOrEmpty(array[j])) if (string.IsNullOrEmpty(array[j]))
{ {
doors[j] = 1; doors[j] = 1;
} }
else if (int.TryParse(array[j], out result)) else {
{ try {
doors[j] = result; doors[j] = Integer.parseInt(array[j]);
} catch (NumberFormatException e) {
}
} }
} }
} }
} }
public static void WriteClear() public static void WriteClear()
{ {
output.Clear(); output.setLength(0);
} }
public static void WriteSection(string section) public static void WriteSection(String section)
{ {
output.Append(section); output.append(section);
output.Append(": "); output.append(": ");
} }
public static void WriteIntArrayField(string name, int[] array) public static void WriteIntArrayField(String name, int[] array)
{ {
output.Append(name); output.append(name);
output.Append("="); output.append("=");
for (int i = 0; i < array.Length; i++) for (int i = 0; i < array.length; i++)
{ {
if (array[i] != 0) if (array[i] != 0)
{ {
output.Append(array[i].ToString(CultureInfo.InvariantCulture)); output.append(string.Format(Locale.US, "%s", array[i]));
} }
if (i < array.Length - 1) if (i < array.length- 1)
{ {
output.Append(","); output.append(",");
} }
} }
output.Append(" "); output.append(" ");
} }
public static void WriteBoolField(string name, bool n) public static void WriteBoolField(String name, boolean n)
{ {
output.Append(name); output.append(name);
output.Append("="); output.append("=");
output.Append(n.ToString(CultureInfo.InvariantCulture)); output.append(string.Format(Locale.US, "%f", n));
output.Append(" "); output.append(" ");
} }
public static void WriteIntField(string name, int n) public static void WriteIntField(String name, int n)
{ {
output.Append(name); output.append(name);
output.Append("="); output.append("=");
output.Append(n.ToString(CultureInfo.InvariantCulture)); output.append(string.Format(Locale.US, "%f", n));
output.Append(" "); output.append(" ");
} }
public static void WriteDoubleField(string name, double n) public static void WriteDoubleField(String name, double n)
{ {
output.Append(name); output.append(name);
output.Append("="); output.append("=");
output.Append(n.ToString(CultureInfo.InvariantCulture)); output.append(string.Format(Locale.US, "%f", n));
output.Append(" "); output.append(" ");
} }
public static void WritePointField(string name, TinyPoint p) public static void WritePointField(String name, TinyPoint p)
{ {
output.Append(name); output.append(name);
output.Append("="); output.append("=");
output.Append(p.X.ToString(CultureInfo.InvariantCulture)); output.append(string.Format(Locale.US, "%f", p.X));
output.Append(";"); output.append(";");
output.Append(p.Y.ToString(CultureInfo.InvariantCulture)); output.append(string.Format(Locale.US, "%f", p.Y));
output.Append(" "); output.append(" ");
} }
public static void WriteDecorField(int[] line) public static void WriteDecorField(int[] line)
{ {
for (int i = 0; i < line.Length; i++) for (int i = 0; i < line.length; i++)
{ {
if (line[i] != -1) if (line[i] != -1)
{ {
output.Append(line[i].ToString(CultureInfo.InvariantCulture)); output.append(string.Format(Locale.US, "%d", line[i]));
} }
if (i < line.Length - 1) if (i < line.length - 1)
{ {
output.Append(","); output.append(",");
} }
} }
output.Append("\n"); output.append("\n");
} }
public static void WriteDoorsField(int[] doors) public static void WriteDoorsField(int[] doors)
{ {
for (int i = 0; i < doors.Length; i++) for (int i = 0; i < doors.length; i++)
{ {
if (doors[i] != 1) if (doors[i] != 1)
{ {
output.Append(doors[i].ToString(CultureInfo.InvariantCulture)); output.append(string.Format(Locale.US, "%d", doors[i]));
} }
if (i < doors.Length - 1) if (i < doors.length - 1)
{ {
output.Append(","); output.append(",");
} }
} }
output.Append("\n"); output.append("\n");
} }
public static void WriteEndSection() public static void WriteEndSection()
{ {
output.Append("\n"); output.append("\n");
} }
public static string GetWriteString() public static String GetWriteString()
{ {
return output.ToString(); return output.toString();
} }
} }
}

View File

@ -21,6 +21,8 @@ gdxVersion=1.12.1
pixelVersion=0.0.0-SNAPSHOT pixelVersion=0.0.0-SNAPSHOT
gdxTeaVMVersion=1.0.3 gdxTeaVMVersion=1.0.3
teaVMVersion=0.10.2 teaVMVersion=0.10.2
netbeans.hint.jdkPlatform=JDK_17 netbeans.hint.jdkPlatform=JDK_jdk-17.0.2_from__home_robertvokac_Desktop_jdk-17.0.2
shapeDrawerVersion=2.6.0 shapeDrawerVersion=2.6.0
netbeans.org-netbeans-modules-javascript2-requirejs.enabled=true netbeans.org-netbeans-modules-javascript2-requirejs.enabled=true
jdotnetVersion=0.0.0-SNAPSHOT
jxnaVersion=0.0.0-SNAPSHOT

View File

@ -52,6 +52,13 @@ dependencies {
implementation "com.pixelgamelibrary:pixel:$pixelVersion:sources" implementation "com.pixelgamelibrary:pixel:$pixelVersion:sources"
api "com.pixelgamelibrary:pixel-backend-libgdx:$pixelVersion" api "com.pixelgamelibrary:pixel-backend-libgdx:$pixelVersion"
implementation "com.pixelgamelibrary:pixel-backend-libgdx:$pixelVersion:sources" implementation "com.pixelgamelibrary:pixel-backend-libgdx:$pixelVersion:sources"
implementation "com.openeggbert.jdotnet:jdotnet:$jdotnetVersion:sources"
api "com.openeggbert.jdotnet:jdotnet:$jdotnetVersion"
implementation "com.openeggbert.jxna:jxna:$jxnaVersion:sources"
api "com.openeggbert.jxna:jxna:$jxnaVersion"
implementation("com.badlogicgames.gdx-controllers:gdx-controllers-gwt:$gdxControllersVersion:sources"){exclude group: "com.badlogicgames.gdx", module: "gdx-backend-gwt"} implementation("com.badlogicgames.gdx-controllers:gdx-controllers-gwt:$gdxControllersVersion:sources"){exclude group: "com.badlogicgames.gdx", module: "gdx-backend-gwt"}
implementation("com.badlogicgames.gdx:gdx-box2d-gwt:$gdxVersion:sources") {exclude group: "com.google.gwt", module: "gwt-user"} implementation("com.badlogicgames.gdx:gdx-box2d-gwt:$gdxVersion:sources") {exclude group: "com.google.gwt", module: "gwt-user"}
implementation("com.github.crykn.guacamole:gdx-gwt:$guacamoleVersion:sources"){exclude group: "com.badlogicgames.gdx", module: "gdx-backend-gwt"} implementation("com.github.crykn.guacamole:gdx-gwt:$guacamoleVersion:sources"){exclude group: "com.badlogicgames.gdx", module: "gdx-backend-gwt"}

View File

@ -25,6 +25,8 @@
<inherits name="com.openeggbert.core.main.OpenEggbertApplication" /> <inherits name="com.openeggbert.core.main.OpenEggbertApplication" />
<inherits name="com.pixelgamelibrary.pixelapi" /> <inherits name="com.pixelgamelibrary.pixelapi" />
<inherits name="com.pixelgamelibrary.backend.pixelbackendlibgdx" /> <inherits name="com.pixelgamelibrary.backend.pixelbackendlibgdx" />
<inherits name="com.openeggbert.jdotnet" />
<inherits name="com.openeggbert.jxna" />
<inherits name="formic" /> <inherits name="formic" />
<inherits name="guacamole_gdx_gwt" /> <inherits name="guacamole_gdx_gwt" />
<inherits name="libgdx-utils" /> <inherits name="libgdx-utils" />