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"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.10.3"
api "com.pixelgamelibrary:pixel:$pixelVersion"
implementation "com.openeggbert.jdotnet:jdotnet:$jdotnetVersion"
implementation "com.openeggbert.jxna:jxna:$jxnaVersion"
if(enableGraalNative == 'true') {
implementation "io.github.berstanio:gdx-svmhelper-annotations:$graalHelperVersion"

View File

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

View File

@ -1,14 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
namespace WindowsPhoneSpeedyBlupi
{
public class AccelerometerDummyImpl : Accelerometer
import com.openeggbert.jdotnet.System.Event;
import com.openeggbert.jdotnet.System.EventHandler;
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()
{
@ -20,4 +21,3 @@ namespace WindowsPhoneSpeedyBlupi
//throw new AccelerometerFailedException();
}
}
}

View File

@ -1,23 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
namespace WindowsPhoneSpeedyBlupi
{
public class AccelerometerEventArgs : EventArgs
{
import com.openeggbert.jdotnet.System.EventArgs;
public float X { get; }
public float Y { get; }
public float Z { get; }
import lombok.Getter;
public AccelerometerEventArgs(float x, float y, float z)
{
X = x;
Y = y;
Z = z;
}
public class AccelerometerEventArgs extends EventArgs {
public float X() {return getX();}
public float Y() {return getY();}
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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
namespace WindowsPhoneSpeedyBlupi
{
public class AccelerometerFactory
{
public static Accelerometer Create() { return new AccelerometerDummyImpl(); }
public class AccelerometerFactory {
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
// 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;
package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
namespace WindowsPhoneSpeedyBlupi
{
public class Game1 : Game
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
// WindowsPhoneSpeedyBlupi.Game1
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.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
};
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.Cheat22,
@ -34,17 +43,17 @@ namespace WindowsPhoneSpeedyBlupi
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;
@ -64,51 +73,45 @@ namespace WindowsPhoneSpeedyBlupi
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 Def.Phase fadeOutPhase;
private int fadeOutMission;
public boolean IsRankingMode() {return false;}
public bool IsRankingMode
public boolean IsTrialMode()
{
get
{
return false;
}
}
public bool IsTrialMode
{
get
{
if (!simulateTrialMode)
{
return isTrialMode;
}
return true;
}
}
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);
}
graphics = new GraphicsDeviceManager(this);
graphics.IsFullScreen = false;
base.Content.RootDirectory = "Content";
base.TargetElapsedTime = TimeSpan.FromTicks(500000L);
base.InactiveSleepTime = TimeSpan.FromSeconds(1.0);
graphics.setFullScreen(false);
super.getContent().setRootDirectory("Content");
super.setTargetElapsedTime(TimeSpan.FromTicks(500000L));
super.setInactiveSleepTime(TimeSpan.FromSeconds(1.0d));
missionToStart1 = -1;
missionToStart2 = -1;
gameData = new GameData();
@ -116,36 +119,33 @@ namespace WindowsPhoneSpeedyBlupi
sound = new Sound(this, gameData);
decor = new Decor();
decor.Create(sound, pixmap, gameData);
TinyPoint pos = new TinyPoint
{
X = 196,
Y = 426
};
TinyPoint pos = new TinyPoint(196,426);
waitJauge = new Jauge();
waitJauge.Create(pixmap, sound, pos, 3, false);
waitJauge.SetHide(false);
waitJauge.Zoom = 2.0;
waitJauge.setZoom(2.0);
phase = Def.Phase.None;
fadeOutPhase = Def.Phase.None;
inputPad = new InputPad(this, decor, pixmap, sound, gameData);
SetPhase(Def.Phase.First);
}
protected override void Initialize()
{
base.Initialize();
@Override
protected void Initialize() {
super.Initialize();
}
protected override void LoadContent()
{
@Override
protected void LoadContent() {
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)
{
@ -155,21 +155,23 @@ namespace WindowsPhoneSpeedyBlupi
{
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;
base.OnActivated(sender, args);
super.OnActivated(sender, args);
}
protected void OnExiting(object sender, EventArgs args)
protected void OnExiting(Object sender, EventArgs args)
{
decor.CurrentDelete();
}
protected override void Update(GameTime gameTime)
@Override
protected void Update(GameTime gameTime)
{
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
{
@ -192,7 +194,7 @@ namespace WindowsPhoneSpeedyBlupi
return;
}
phaseTime++;
if (fadeOutPhase != 0)
if (fadeOutPhase != Def.Phase.None)
{
if (phaseTime >= 20)
{
@ -211,7 +213,7 @@ namespace WindowsPhoneSpeedyBlupi
pixmap.LoadContent();
sound.LoadContent();
gameData.Read();
inputPad.PixmapOrigin = pixmap.Origin;
inputPad.PixmapOrigin = pixmap.Origin();
SetPhase(Def.Phase.Wait);
return;
}
@ -226,7 +228,7 @@ namespace WindowsPhoneSpeedyBlupi
return;
}
}
long num = gameTime.TotalGameTime.Ticks - startTime.Ticks;
long num = gameTime.TotalGameTime.Ticks() - startTime.Ticks();
waitProgress = (double)num / 50000000.0;
if (waitProgress > 1.0)
{
@ -235,41 +237,41 @@ namespace WindowsPhoneSpeedyBlupi
return;
}
inputPad.Update();
Def.ButtonGlygh buttonPressed = inputPad.ButtonPressed;
if (buttonPressed >= Def.ButtonGlygh.InitGamerA && buttonPressed <= Def.ButtonGlygh.InitGamerC)
Def.ButtonGlygh buttonPressed = inputPad.ButtonPressed();
if (buttonPressed.ordinal()>= Def.ButtonGlygh.InitGamerA.ordinal() && buttonPressed.ordinal() <= Def.ButtonGlygh.InitGamerC.ordinal())
{
SetGamer((int)(buttonPressed - 1));
SetGamer((int)(buttonPressed.ordinal() - 1));
return;
}
switch (buttonPressed)
{
case Def.ButtonGlygh.InitSetup:
case InitSetup:
SetPhase(Def.Phase.MainSetup);
return;
case Def.ButtonGlygh.PauseSetup:
case PauseSetup:
SetPhase(Def.Phase.PlaySetup);
return;
case Def.ButtonGlygh.SetupSounds:
gameData.Sounds = !gameData.Sounds;
case SetupSounds:
gameData.setSounds(!gameData.Sounds());
gameData.Write();
return;
case Def.ButtonGlygh.SetupJump:
gameData.JumpRight = !gameData.JumpRight;
case SetupJump:
gameData.setJumpRight(!gameData.JumpRight());
gameData.Write();
return;
case Def.ButtonGlygh.SetupZoom:
gameData.AutoZoom = !gameData.AutoZoom;
case SetupZoom:
gameData.setAutoZoom(!gameData.AutoZoom());
gameData.Write();
return;
case Def.ButtonGlygh.SetupAccel:
gameData.AccelActive = !gameData.AccelActive;
case SetupAccel:
gameData.setAccelActive(!gameData.AccelActive());
gameData.Write();
return;
case Def.ButtonGlygh.SetupReset:
case SetupReset:
gameData.Reset();
gameData.Write();
return;
case Def.ButtonGlygh.SetupReturn:
case SetupReturn:
if (playSetup)
{
SetPhase(Def.Phase.Play, -1);
@ -279,57 +281,57 @@ namespace WindowsPhoneSpeedyBlupi
SetPhase(Def.Phase.Init);
}
return;
case Def.ButtonGlygh.InitPlay:
case InitPlay:
SetPhase(Def.Phase.Play, 1);
return;
case Def.ButtonGlygh.PlayPause:
case PlayPause:
SetPhase(Def.Phase.Pause);
return;
case Def.ButtonGlygh.WinLostReturn:
case Def.ButtonGlygh.PauseMenu:
case Def.ButtonGlygh.ResumeMenu:
case WinLostReturn:
case PauseMenu:
case ResumeMenu:
SetPhase(Def.Phase.Init);
break;
}
switch (buttonPressed)
{
case Def.ButtonGlygh.ResumeContinue:
case ResumeContinue:
ContinueMission();
return;
case Def.ButtonGlygh.InitBuy:
case Def.ButtonGlygh.TrialBuy:
case InitBuy:
case TrialBuy:
MarketPlace.Show(PlayerIndex.One);
SetPhase(Def.Phase.Init);
return;
case Def.ButtonGlygh.InitRanking:
case InitRanking:
SetPhase(Def.Phase.Ranking);
return;
case Def.ButtonGlygh.TrialCancel:
case Def.ButtonGlygh.RankingContinue:
case TrialCancel:
case RankingContinue:
SetPhase(Def.Phase.Init);
return;
case Def.ButtonGlygh.PauseBack:
case PauseBack:
MissionBack();
return;
case Def.ButtonGlygh.PauseRestart:
case PauseRestart:
SetPhase(Def.Phase.Play, mission);
return;
case Def.ButtonGlygh.PauseContinue:
case PauseContinue:
SetPhase(Def.Phase.Play, -1);
return;
case Def.ButtonGlygh.Cheat11:
case Def.ButtonGlygh.Cheat12:
case Def.ButtonGlygh.Cheat21:
case Def.ButtonGlygh.Cheat22:
case Def.ButtonGlygh.Cheat31:
case Def.ButtonGlygh.Cheat32:
case Cheat11:
case Cheat12:
case Cheat21:
case Cheat22:
case Cheat31:
case Cheat32:
if (buttonPressed == cheatGeste[cheatGesteIndex])
{
cheatGesteIndex++;
if (cheatGesteIndex == cheatGeste.Length)
if (cheatGesteIndex == cheatGeste.length)
{
cheatGesteIndex = 0;
inputPad.ShowCheatMenu = true;
inputPad.setShowCheatMenu(true);
}
}
else
@ -338,13 +340,13 @@ namespace WindowsPhoneSpeedyBlupi
}
break;
default:
if (buttonPressed != 0)
if (buttonPressed.ordinal() != 0)
{
cheatGesteIndex = 0;
}
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);
}
@ -369,7 +371,7 @@ namespace WindowsPhoneSpeedyBlupi
StartMission(num2);
}
}
base.Update(gameTime);
super.Update(gameTime);
}
private void MissionBack()
@ -386,7 +388,7 @@ namespace WindowsPhoneSpeedyBlupi
private void StartMission(int mission)
{
if (mission > 20 && mission % 10 > 1 && IsTrialMode)
if (mission > 20 && mission % 10 > 1 && IsTrialMode())
{
SetPhase(Def.Phase.Trial);
return;
@ -394,15 +396,15 @@ namespace WindowsPhoneSpeedyBlupi
this.mission = mission;
if (this.mission != 1)
{
gameData.LastWorld = this.mission / 10;
gameData.setLastWorld(this.mission / 10);
}
decor.Read(0, this.mission, false);
decor.LoadImages();
decor.SetMission(this.mission);
decor.SetNbVies(gameData.NbVies);
decor.SetNbVies(gameData.NbVies());
decor.InitializeDoors(gameData);
decor.AdaptDoors(false);
decor.MainSwitchInitialize(gameData.LastWorld);
decor.MainSwitchInitialize(gameData.LastWorld());
decor.PlayPrepare(false);
decor.StartSound();
inputPad.StartMission(this.mission);
@ -414,7 +416,7 @@ namespace WindowsPhoneSpeedyBlupi
mission = decor.GetMission();
if (mission != 1)
{
gameData.LastWorld = mission / 10;
gameData.setLastWorld(mission / 10);
}
decor.LoadImages();
decor.StartSound();
@ -425,37 +427,38 @@ namespace WindowsPhoneSpeedyBlupi
{
switch (glyph)
{
case Def.ButtonGlygh.Cheat1:
case Cheat1:
decor.CheatAction(Tables.CheatCodes.OpenDoors);
break;
case Def.ButtonGlygh.Cheat2:
case Cheat2:
decor.CheatAction(Tables.CheatCodes.SuperBlupi);
break;
case Def.ButtonGlygh.Cheat3:
case Cheat3:
decor.CheatAction(Tables.CheatCodes.ShowSecret);
break;
case Def.ButtonGlygh.Cheat4:
case Cheat4:
decor.CheatAction(Tables.CheatCodes.LayEgg);
break;
case Def.ButtonGlygh.Cheat5:
case Cheat5:
gameData.Reset();
break;
case Def.ButtonGlygh.Cheat6:
case Cheat6:
simulateTrialMode = !simulateTrialMode;
break;
case Def.ButtonGlygh.Cheat7:
case Cheat7:
decor.CheatAction(Tables.CheatCodes.CleanAll);
break;
case Def.ButtonGlygh.Cheat8:
case Cheat8:
decor.CheatAction(Tables.CheatCodes.AllTreasure);
break;
case Def.ButtonGlygh.Cheat9:
case Cheat9:
decor.CheatAction(Tables.CheatCodes.EndGoal);
break;
}
}
protected override void Draw(GameTime gameTime)
@Override
protected void Draw(GameTime gameTime)
{
if (continueMission == 1)
{
@ -489,20 +492,20 @@ namespace WindowsPhoneSpeedyBlupi
{
DrawWaitProgress();
}
base.Draw(gameTime);
super.Draw(gameTime);
}
private void DrawBackgroundFade()
{
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;
double opacity;
if (fadeOutPhase == Def.Phase.MainSetup)
{
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.Right = (int)(1360.0 - 640.0 * num);
tinyRect.Top = 0;
@ -512,8 +515,8 @@ namespace WindowsPhoneSpeedyBlupi
}
else
{
num = ((fadeOutPhase != 0) ? (1.0 - num * 2.0) : (1.0 - (1.0 - num) * (1.0 - num)));
TinyRect tinyRect2 = default(TinyRect);
num = ((fadeOutPhase.ordinal() != 0) ? (1.0 - num * 2.0) : (1.0 - (1.0 - num) * (1.0 - num)));
TinyRect tinyRect2 = default_(new TinyRect());
tinyRect2.Left = 80;
tinyRect2.Right = 720;
tinyRect2.Top = (int)(-160.0 + num * 160.0);
@ -525,7 +528,7 @@ namespace WindowsPhoneSpeedyBlupi
}
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;
if (fadeOutPhase == Def.Phase.MainSetup)
{
@ -534,15 +537,16 @@ namespace WindowsPhoneSpeedyBlupi
}
else if (fadeOutPhase == Def.Phase.None)
{
num = 0.5 + num / 2.0;
opacity = Math.Min(num * num, 1.0);
opacity = Math_.Min(num * num, 1.0);
}
else
{
opacity = 1.0 - num;
num = 1.0 + num * 10.0;
}
TinyRect tinyRect3 = default(TinyRect);
TinyRect tinyRect3 = default_(new TinyRect());
tinyRect3.Left = (int)(468.0 - 205.0 * num);
tinyRect3.Right = (int)(468.0 + 205.0 * num);
tinyRect3.Top = (int)(280.0 - 190.0 * num);
@ -554,10 +558,10 @@ namespace WindowsPhoneSpeedyBlupi
{
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;
num = 1.0 + num * 10.0;
TinyRect tinyRect4 = default(TinyRect);
TinyRect tinyRect4 = default_(new TinyRect());
tinyRect4.Left = (int)(418.0 - 205.0 * num);
tinyRect4.Right = (int)(418.0 + 205.0 * num);
tinyRect4.Top = (int)(190.0 - 190.0 * num);
@ -567,9 +571,9 @@ namespace WindowsPhoneSpeedyBlupi
}
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;
TinyRect tinyRect5 = default(TinyRect);
TinyRect tinyRect5 = default_(new TinyRect());
tinyRect5.Left = (int)(213.0 + 800.0 * num);
tinyRect5.Right = (int)(623.0 + 800.0 * num);
tinyRect5.Top = 0;
@ -582,14 +586,14 @@ namespace WindowsPhoneSpeedyBlupi
double num;
if (fadeOutPhase == Def.Phase.None)
{
num = Math.Min((double)phaseTime / 15.0, 1.0);
num = Math_.Min((double)phaseTime / 15.0, 1.0);
}
else
{
num = Math.Min((double)phaseTime / 15.0, 1.0);
num = Math_.Min((double)phaseTime / 15.0, 1.0);
num = 1.0 - num;
}
TinyRect tinyRect6 = default(TinyRect);
TinyRect tinyRect6 = default_(new TinyRect());
tinyRect6.Left = (int)(418.0 - 205.0 * num);
tinyRect6.Right = (int)(418.0 + 205.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;
}
if (rect.Width > 0 && rect.Height > 0)
if (rect.Width() > 0 && rect.Height() > 0)
{
pixmap.DrawIcon(16, 0, rect, 1.0, rotation, false);
}
@ -608,7 +612,7 @@ namespace WindowsPhoneSpeedyBlupi
}
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);
double num2;
if (phaseTime < 20)
@ -620,25 +624,25 @@ namespace WindowsPhoneSpeedyBlupi
{
num2 = 1.0 + ((double)phaseTime - 20.0) / 400.0;
}
if (fadeOutPhase != 0)
if (fadeOutPhase.ordinal() != 0)
{
num = 1.0 - num;
num2 = 1.0 - num2;
}
TinyRect tinyRect7 = default(TinyRect);
TinyRect tinyRect7 = default_(new TinyRect());
tinyRect7.Left = (int)(720.0 - 640.0 * num);
tinyRect7.Right = (int)(1360.0 - 640.0 * num);
tinyRect7.Top = 0;
tinyRect7.Bottom = 160;
TinyRect rect = tinyRect7;
pixmap.DrawIcon(15, 0, rect, num * num, false);
TinyRect tinyRect8 = default(TinyRect);
TinyRect tinyRect8 = default_(new TinyRect());
tinyRect8.Left = 487;
tinyRect8.Right = 713;
tinyRect8.Top = 148;
tinyRect8.Bottom = 374;
TinyRect rect2 = tinyRect8;
TinyRect tinyRect9 = default(TinyRect);
TinyRect tinyRect9 = default_(new TinyRect());
tinyRect9.Left = 118;
tinyRect9.Right = 570;
tinyRect9.Top = 268;
@ -651,8 +655,8 @@ namespace WindowsPhoneSpeedyBlupi
}
if (phase == Def.Phase.Lost)
{
double num = Math.Min((double)phaseTime / 100.0, 1.0);
TinyRect tinyRect10 = default(TinyRect);
double num = Math_.Min((double)phaseTime / 100.0, 1.0);
TinyRect tinyRect10 = default_(new TinyRect());
tinyRect10.Left = (int)(418.0 - 205.0 * num);
tinyRect10.Right = (int)(418.0 + 205.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;
}
if (rect.Width > 0 && rect.Height > 0)
if (rect.Width() > 0 && rect.Height() > 0)
{
pixmap.DrawIcon(16, 0, rect, 1.0, rotation, false);
}
}
if (phase == Def.Phase.Win)
{
double num = Math.Sin((double)phaseTime / 3.0) / 2.0 + 1.0;
TinyRect tinyRect11 = default(TinyRect);
double num = Math_.Sin((double)phaseTime / 3.0) / 2.0 + 1.0;
TinyRect tinyRect11 = default_(new TinyRect());
tinyRect11.Left = (int)(418.0 - 205.0 * num);
tinyRect11.Right = (int)(418.0 + 205.0 * num);
tinyRect11.Top = (int)(238.0 - 190.0 * num);
@ -685,20 +689,20 @@ namespace WindowsPhoneSpeedyBlupi
{
if (phase == Def.Phase.Init)
{
TinyRect drawBounds = pixmap.DrawBounds;
int width = drawBounds.Width;
int height = drawBounds.Height;
TinyRect tinyRect = default(TinyRect);
TinyRect drawBounds = pixmap.DrawBounds();
int width = drawBounds.Width();
int height = drawBounds.Height();
TinyRect tinyRect = default_(new TinyRect());
tinyRect.Left = 10;
tinyRect.Right = 260;
tinyRect.Top = height - 325;
tinyRect.Bottom = height - 10;
TinyRect rect = tinyRect;
pixmap.DrawIcon(14, 15, rect, 0.3, false);
TinyRect tinyRect2 = default(TinyRect);
TinyRect tinyRect2 = default_(new TinyRect());
tinyRect2.Left = width - 170;
tinyRect2.Right = width - 10;
tinyRect2.Top = height - ((IsTrialMode || IsRankingMode) ? 325 : 195);
tinyRect2.Top = height - ((IsTrialMode() || IsRankingMode()) ? 325 : 195);
tinyRect2.Bottom = height - 10;
rect = tinyRect2;
pixmap.DrawIcon(14, 15, rect, 0.3, false);
@ -714,11 +718,11 @@ namespace WindowsPhoneSpeedyBlupi
DrawButtonGamerText(Def.ButtonGlygh.InitGamerC, 2);
DrawTextUnderButton(Def.ButtonGlygh.InitPlay, MyResource.TX_BUTTON_PLAY);
DrawTextRightButton(Def.ButtonGlygh.InitSetup, MyResource.TX_BUTTON_SETUP);
if (IsTrialMode)
if (IsTrialMode())
{
DrawTextUnderButton(Def.ButtonGlygh.InitBuy, MyResource.TX_BUTTON_BUY);
}
if (IsRankingMode)
if (IsRankingMode())
{
DrawTextUnderButton(Def.ButtonGlygh.InitRanking, MyResource.TX_BUTTON_RANKING);
}
@ -750,13 +754,13 @@ namespace WindowsPhoneSpeedyBlupi
DrawTextRightButton(Def.ButtonGlygh.SetupAccel, MyResource.TX_BUTTON_SETUP_ACCEL);
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);
}
}
if (phase == Def.Phase.Trial)
{
TinyPoint tinyPoint = default(TinyPoint);
TinyPoint tinyPoint = default_(new TinyPoint());
tinyPoint.X = 360;
tinyPoint.Y = 50;
TinyPoint pos = tinyPoint;
@ -783,31 +787,32 @@ namespace WindowsPhoneSpeedyBlupi
private void DrawButtonGamerText(Def.ButtonGlygh glyph, int gamer)
{
TinyRect buttonRect = inputPad.GetButtonRect(glyph);
int nbVies;
int mainDoors;
int secondaryDoors;
gameData.GetGamerInfo(gamer, out nbVies, out mainDoors, out secondaryDoors);
TinyPoint tinyPoint = default(TinyPoint);
tinyPoint.X = buttonRect.Right + 5 - pixmap.Origin.X;
tinyPoint.Y = buttonRect.Top + 3 - pixmap.Origin.Y;
GamerInfo gamerInfo = gameData.GetGamerInfo(gamer);
int nbVies = gamerInfo.nbVies;
int mainDoors = gamerInfo.mainDoors;
int secondaryDoors = gamerInfo.secondaryDoors;
TinyPoint tinyPoint = default_(new TinyPoint());
tinyPoint.X = buttonRect.Right + 5 - pixmap.Origin().X;
tinyPoint.Y = buttonRect.Top + 3 - pixmap.Origin().Y;
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);
TinyPoint tinyPoint2 = default(TinyPoint);
tinyPoint2.X = buttonRect.Right + 5 - pixmap.Origin.X;
tinyPoint2.Y = buttonRect.Top + 25 - pixmap.Origin.Y;
TinyPoint tinyPoint2 = default_(new TinyPoint());
tinyPoint2.X = buttonRect.Right + 5 - pixmap.Origin().X;
tinyPoint2.Y = buttonRect.Top + 25 - pixmap.Origin().Y;
pos = tinyPoint2;
text = string.Format(MyResource.LoadString(MyResource.TX_GAMER_MDOORS), mainDoors);
Text.DrawText(pixmap, pos, text, 0.45);
TinyPoint tinyPoint3 = default(TinyPoint);
tinyPoint3.X = buttonRect.Right + 5 - pixmap.Origin.X;
tinyPoint3.Y = buttonRect.Top + 39 - pixmap.Origin.Y;
TinyPoint tinyPoint3 = default_(new TinyPoint());
tinyPoint3.X = buttonRect.Right + 5 - pixmap.Origin().X;
tinyPoint3.Y = buttonRect.Top + 39 - pixmap.Origin().Y;
pos = tinyPoint3;
text = string.Format(MyResource.LoadString(MyResource.TX_GAMER_SDOORS), secondaryDoors);
Text.DrawText(pixmap, pos, text, 0.45);
TinyPoint tinyPoint4 = default(TinyPoint);
tinyPoint4.X = buttonRect.Right + 5 - pixmap.Origin.X;
tinyPoint4.Y = buttonRect.Top + 53 - pixmap.Origin.Y;
TinyPoint tinyPoint4 = default_(new TinyPoint());
tinyPoint4.X = buttonRect.Right + 5 - pixmap.Origin().X;
tinyPoint4.Y = buttonRect.Top + 53 - pixmap.Origin().Y;
pos = tinyPoint4;
text = string.Format(MyResource.LoadString(MyResource.TX_GAMER_LIFES), nbVies);
Text.DrawText(pixmap, pos, text, 0.45);
@ -818,15 +823,15 @@ namespace WindowsPhoneSpeedyBlupi
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);
string[] array = text.Split('\n');
if (array.Length == 2)
String[] array = text.split("\n");
if (array.length == 2)
{
TinyPoint tinyPoint = default(TinyPoint);
tinyPoint.X = buttonRect.Right + 10 - pixmap.Origin.X;
tinyPoint.Y = (buttonRect.Top + buttonRect.Bottom) / 2 - 20 - pixmap.Origin.Y;
TinyPoint tinyPoint = default_(new TinyPoint());
tinyPoint.X = buttonRect.Right + 10 - pixmap.Origin().X;
tinyPoint.Y = (buttonRect.Top + buttonRect.Bottom) / 2 - 20 - pixmap.Origin().Y;
TinyPoint pos = tinyPoint;
Text.DrawText(pixmap, pos, array[0], 0.7);
pos.Y += 24;
@ -834,9 +839,9 @@ namespace WindowsPhoneSpeedyBlupi
}
else
{
TinyPoint tinyPoint2 = default(TinyPoint);
tinyPoint2.X = buttonRect.Right + 10 - pixmap.Origin.X;
tinyPoint2.Y = (buttonRect.Top + buttonRect.Bottom) / 2 - 8 - pixmap.Origin.Y;
TinyPoint tinyPoint2 = default_(new TinyPoint());
tinyPoint2.X = buttonRect.Right + 10 - pixmap.Origin().X;
tinyPoint2.Y = (buttonRect.Top + buttonRect.Bottom) / 2 - 8 - pixmap.Origin().Y;
TinyPoint pos2 = tinyPoint2;
Text.DrawText(pixmap, pos2, text, 0.7);
}
@ -845,11 +850,11 @@ namespace WindowsPhoneSpeedyBlupi
private void DrawTextUnderButton(Def.ButtonGlygh glyph, int res)
{
TinyRect buttonRect = inputPad.GetButtonRect(glyph);
TinyPoint tinyPoint = default(TinyPoint);
tinyPoint.X = (buttonRect.Left + buttonRect.Right) / 2 - pixmap.Origin.X;
tinyPoint.Y = buttonRect.Bottom + 2 - pixmap.Origin.Y;
TinyPoint tinyPoint = default_(new TinyPoint());
tinyPoint.X = (buttonRect.Left + buttonRect.Right) / 2 - pixmap.Origin().X;
tinyPoint.Y = buttonRect.Bottom + 2 - pixmap.Origin().Y;
TinyPoint pos = tinyPoint;
string text = MyResource.LoadString(res);
String text = MyResource.LoadString(res);
Text.DrawTextCenter(pixmap, pos, text, 0.7);
}
@ -859,7 +864,7 @@ namespace WindowsPhoneSpeedyBlupi
{
return;
}
for (int i = 0; i < waitTable.Length; i++)
for (int i = 0; i < waitTable.length; i++)
{
if (waitProgress <= waitTable[i * 2])
{
@ -872,16 +877,16 @@ namespace WindowsPhoneSpeedyBlupi
private void DrawDebug()
{
TinyPoint tinyPoint = default(TinyPoint);
TinyPoint tinyPoint = default_(new TinyPoint());
tinyPoint.X = 10;
tinyPoint.Y = 20;
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)
{
gameData.SelectedGamer = gamer;
gameData.setSelectedGamer(gamer);
gameData.Write();
}
@ -930,31 +935,31 @@ namespace WindowsPhoneSpeedyBlupi
decor.StopSound();
switch (this.phase)
{
case Def.Phase.Init:
case Init:
pixmap.BackgroundCache("init");
break;
case Def.Phase.Pause:
case Def.Phase.Resume:
case Pause:
case Resume:
pixmap.BackgroundCache("pause");
break;
case Def.Phase.Lost:
case Lost:
pixmap.BackgroundCache("lost");
break;
case Def.Phase.Win:
case Win:
pixmap.BackgroundCache("win");
break;
case Def.Phase.MainSetup:
case Def.Phase.PlaySetup:
case MainSetup:
case PlaySetup:
pixmap.BackgroundCache("setup");
break;
case Def.Phase.Trial:
case Trial:
pixmap.BackgroundCache("trial");
break;
case Def.Phase.Ranking:
case Ranking:
pixmap.BackgroundCache("pause");
break;
case Def.Phase.Play:
decor.DrawBounds = pixmap.DrawBounds;
case Play:
decor.setDrawBounds(pixmap.DrawBounds());
break;
}
if (this.phase == Def.Phase.Play && mission > 0)
@ -965,7 +970,7 @@ namespace WindowsPhoneSpeedyBlupi
private void MemorizeGamerProgress()
{
gameData.NbVies = decor.GetNbVies();
gameData.setNbVies(decor.GetNbVies());
decor.MemorizeDoors(gameData);
gameData.Write();
}
@ -978,6 +983,5 @@ namespace WindowsPhoneSpeedyBlupi
{
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
// WindowsPhoneSpeedyBlupi.GameData
using System;
using WindowsPhoneSpeedyBlupi;
package com.openeggbert.core.phone.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
{
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
{
get
{
return data[2];
}
set
{
data[2] = (byte)value;
}
public int SelectedGamer() {
return getSelectedGamer();
}
public int getSelectedGamer() {
return data[2];
}
public bool Sounds
{
get
{
return data[3] == 1;
}
set
{
data[3] = (byte)(value ? 1u : 0u);
}
public void setSelectedGamer(int value) {
data[2] = (byte) value;
}
public bool JumpRight
{
get
{
return data[4] == 1;
}
set
{
data[4] = (byte)(value ? 1u : 0u);
}
public boolean Sounds() {
return isSounds();
}
public boolean isSounds() {
return data[3] == 1;
}
public bool AutoZoom
{
get
{
return data[5] == 1;
}
set
{
data[5] = (byte)(value ? 1u : 0u);
}
public void setSounds(boolean value) {
data[3] = (byte) (value ? 1 : 0);
}
public boolean JumpRight() {
return isJumpRight();
}
public boolean isJumpRight() {
return data[4] == 1;
}
public bool AccelActive
{
get
{
return data[6] == 1;
}
set
{
data[6] = (byte)(value ? 1u : 0u);
}
public void setJumpRight(boolean value) {
data[4] = (byte) (value ? 1 : 0);
}
public double AccelSensitivity
{
get
{
return (double)(int)data[7] / 100.0;
}
set
{
value = Math.Max(value, 0.0);
value = Math.Min(value, 1.0);
data[7] = (byte)(value * 100.0);
}
public boolean AutoZoom() {
return isAutoZoom();
}
public boolean isAutoZoom() {
return data[5] == 1;
}
public int NbVies
{
get
{
return data[GamerOffset];
}
set
{
data[GamerOffset] = (byte)value;
}
public void setAutoZoom(boolean value) {
data[5] = (byte) (value ? 1 : 0);
}
public boolean AccelActive() {
return isAccelActive();
}
public boolean isAccelActive() {
return data[6] == 1;
}
public int LastWorld
{
get
{
return data[GamerOffset + 1];
}
set
{
data[GamerOffset + 1] = (byte)value;
}
public void setAccelActive(boolean value) {
data[6] = (byte) (value ? 1 : 0);
}
private int GamerOffset
{
get
{
return GetGamerOffset(SelectedGamer);
}
public double AccelSensitivity() {
return getAccelSensitivity();
}
public double getAccelSensitivity() {
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()
{
data = new byte[TotalLength];
@ -144,14 +138,14 @@ namespace WindowsPhoneSpeedyBlupi
public void Reset()
{
Initialize(SelectedGamer);
Initialize(getSelectedGamer());
}
public void GetDoors(int[] doors)
{
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++)
{
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)
{
nbVies = data[GetGamerOffset(gamer)];
secondaryDoors = 0;
for (int i = 0; i < 180; i++)
{
if (data[GetGamerOffset(gamer) + 10 + i] == 1)
{
static class GamerInfo {
public int nbVies;
public int mainDoors;
public int secondaryDoors;
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++;
}
}
mainDoors = 0;
for (int j = 180; j < 200; j++)
{
if (data[GetGamerOffset(gamer) + 10 + j] == 1)
{
int mainDoors = 0;
for (int j = 180; j < 200; j++) {
if (data[getGamerOffset(gamer) + 10 + j] == 1) {
mainDoors++;
}
}
return new GamerInfo(nbVies, mainDoors, secondaryDoors);
}
private void Initialize()
@ -194,7 +200,7 @@ namespace WindowsPhoneSpeedyBlupi
data[5] = 1;
data[6] = 0;
data[7] = 50;
SelectedGamer = 0;
setSelectedGamer(0);
for (int i = 0; i < MaxGamer; 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
// WindowsPhoneSpeedyBlupi.Jauge
using Microsoft.Xna.Framework.Media;
using WindowsPhoneSpeedyBlupi;
package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
// 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
{
private Pixmap m_pixmap;
private Sound m_sound;
private bool m_bHide;
private boolean m_bHide;
private TinyPoint m_pos;
@ -21,24 +26,21 @@ namespace WindowsPhoneSpeedyBlupi
private int m_level;
private bool m_bMinimizeRedraw;
private boolean m_bMinimizeRedraw;
private bool m_bRedraw;
private boolean m_bRedraw;
private double m_zoom;
public double Zoom
{
get
{
return m_zoom;
}
set
{
m_zoom = value;
}
public double getZoom() {
return m_zoom;
}
public void setZoom(double value) {
m_zoom = value;
}
public Jauge()
{
m_mode = 0;
@ -48,7 +50,7 @@ namespace WindowsPhoneSpeedyBlupi
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_sound = sound;
@ -65,7 +67,7 @@ namespace WindowsPhoneSpeedyBlupi
public void Draw()
{
TinyRect rect = default(TinyRect);
TinyRect rect = default_(new TinyRect());
if (m_bMinimizeRedraw && !m_bRedraw)
{
return;
@ -131,12 +133,12 @@ namespace WindowsPhoneSpeedyBlupi
m_mode = mode;
}
public bool GetHide()
public boolean GetHide()
{
return m_bHide;
}
public void SetHide(bool bHide)
public void SetHide(boolean bHide)
{
if (m_bHide != bHide)
{
@ -156,4 +158,3 @@ namespace WindowsPhoneSpeedyBlupi
}
}
}

View File

@ -1,13 +1,8 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
import com.openeggbert.jdotnet.System.Diagnostics.Debug;
import com.openeggbert.jxna.Microsoft.Xna.Framework.PlayerIndex;
namespace WindowsPhoneSpeedyBlupi
{
public class MarketPlace
{
public static void Show(PlayerIndex playerIndex)
@ -16,4 +11,3 @@ namespace WindowsPhoneSpeedyBlupi
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
using System;
using Microsoft.Xna.Framework;
using WindowsPhoneSpeedyBlupi;
using static WindowsPhoneSpeedyBlupi.Def;
import com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi.Def.KeyboardPress;
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.Rectangle;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.out;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.namespace;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.static_;
namespace WindowsPhoneSpeedyBlupi
{
public static class Misc
@namespace(name = "WindowsPhoneSpeedyBlupi")
@static_
public class Misc
{
private Misc() {
//Not meant to be instantiated.
}
public static Rectangle RotateAdjust(Rectangle rect, double angle)
{
TinyPoint tinyPoint = default(TinyPoint);
TinyPoint tinyPoint = default_(new TinyPoint());
tinyPoint.X = rect.Width / 2;
tinyPoint.Y = rect.Height / 2;
TinyPoint p = tinyPoint;
TinyPoint tinyPoint2 = RotatePointRad(angle, p);
int num = tinyPoint2.X - p.X;
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)
{
return RotatePointRad(default(TinyPoint), angle, p);
return RotatePointRad(default_(new TinyPoint()), angle, p);
}
public static TinyPoint RotatePointRad(TinyPoint center, double angle, TinyPoint p)
{
TinyPoint tinyPoint = default(TinyPoint);
TinyPoint result = default(TinyPoint);
TinyPoint tinyPoint = default_(new TinyPoint());
TinyPoint result = default_(new TinyPoint());
tinyPoint.X = p.X - center.X;
tinyPoint.Y = p.Y - center.Y;
double num = Math.Sin(angle);
double num2 = Math.Cos(angle);
double num = Math_.Sin(angle);
double num2 = Math_.Cos(angle);
result.X = (int)((double)tinyPoint.X * num2 - (double)tinyPoint.Y * num);
result.Y = (int)((double)tinyPoint.X * num + (double)tinyPoint.Y * num2);
result.X += center.X;
@ -44,18 +53,18 @@ namespace WindowsPhoneSpeedyBlupi
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;
}
@ -64,18 +73,18 @@ namespace WindowsPhoneSpeedyBlupi
{
if (speed > 0.0)
{
return Math.Max((int)(speed * (double)max), 1);
return Math_.Max((int)(speed * (double)max), 1);
}
if (speed < 0.0)
{
return Math.Min((int)(speed * (double)max), -1);
return Math_.Min((int)(speed * (double)max), -1);
}
return 0;
}
public static TinyRect Inflate(TinyRect rect, int value)
{
TinyRect result = default(TinyRect);
TinyRect result = default_(new TinyRect());
result.Left = rect.Left - value;
result.Right = rect.Right + value;
result.Top = rect.Top - value;
@ -83,7 +92,7 @@ namespace WindowsPhoneSpeedyBlupi
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)
{
@ -92,27 +101,28 @@ namespace WindowsPhoneSpeedyBlupi
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.Left = Math.Max(src1.Left, src2.Left);
dst.Right = Math.Min(src1.Right, src2.Right);
dst.Top = Math.Max(src1.Top, src2.Top);
dst.Bottom = Math.Min(src1.Bottom, src2.Bottom);
dst = default_(dst);
dst.Left = Math_.Max(src1.Left, src2.Left);
dst.Right = Math_.Min(src1.Right, src2.Right);
dst.Top = Math_.Max(src1.Top, src2.Top);
dst.Bottom = Math_.Min(src1.Bottom, src2.Bottom);
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.Right = Math.Max(src1.Right, src2.Right);
dst.Top = Math.Min(src1.Top, src2.Top);
dst.Bottom = Math.Max(src1.Bottom, src2.Bottom);
dst = default_(dst);
dst.Left = Math_.Min(src1.Left, src2.Left);
dst.Right = Math_.Max(src1.Right, src2.Right);
dst.Top = Math_.Min(src1.Top, src2.Top);
dst.Bottom = Math_.Max(src1.Bottom, src2.Bottom);
return !IsRectEmpty(dst);
}
private static bool IsRectEmpty(TinyRect rect)
private static boolean IsRectEmpty(TinyRect rect)
{
if (rect.Left < rect.Right)
{
@ -133,24 +143,23 @@ namespace WindowsPhoneSpeedyBlupi
case 6: return KeyboardPress.Space;
case 7: return KeyboardPress.Escape;
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)
{
switch (kp)
{
case KeyboardPress.None: return 0;
case KeyboardPress.Up: return 1;
case KeyboardPress.Right: return 2;
case KeyboardPress.Down: return 3;
case KeyboardPress.Left: return 4;
case KeyboardPress.LeftControl: return 5;
case KeyboardPress.Space: return 6;
case KeyboardPress.Escape: return 7;
case KeyboardPress.Pause: return 8;
default: throw new Exception("Unsupported KeyboardPress: " + kp);
case None: return 0;
case Up: return 1;
case Right: return 2;
case Down: return 3;
case Left: return 4;
case LeftControl: return 5;
case Space: return 6;
case Escape: return 7;
case Pause: return 8;
default: throw new Exception_("Unsupported KeyboardPress: " + kp);
}
}
}
}

View File

@ -1,18 +1,26 @@
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
// WindowsPhoneSpeedyBlupi.Pixmap
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using WindowsPhoneSpeedyBlupi;
using static System.Net.Mime.MediaTypeNames;
package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
// WindowsPhoneSpeedyBlupi.Pixmap
import static com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.default_.default_;
import com.openeggbert.jdotnet.System.*;
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
{
private readonly Game1 game1;
private final Game1 game1;
private readonly GraphicsDeviceManager graphics;
private final GraphicsDeviceManager graphics;
private double zoom;
@ -58,13 +66,14 @@ namespace WindowsPhoneSpeedyBlupi
private SpriteEffects effect;
public TinyRect DrawBounds
public TinyRect DrawBounds() {return getDrawBounds();}
public TinyRect getDrawBounds()
{
get
{
TinyRect result = default(TinyRect);
double num = graphics.GraphicsDevice.Viewport.Width;
double num2 = graphics.GraphicsDevice.Viewport.Height;
TinyRect result = default_(new TinyRect());
double num = graphics.GraphicsDevice().Viewport().Width();
double num2 = graphics.GraphicsDevice().Viewport().Height();
if (num != 0.0 && num2 != 0.0)
{
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.Y = (int)originY;
return result;
@ -109,7 +118,7 @@ namespace WindowsPhoneSpeedyBlupi
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.Y = (int)((double)(pos.Y - (int)hotSpotY) / hotSpotZoom) + (int)hotSpotY - (int)originY;
return result;
@ -122,166 +131,166 @@ namespace WindowsPhoneSpeedyBlupi
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)
{
case Def.ButtonGlygh.InitGamerA:
case InitGamerA:
DrawIcon(14, selected ? 16 : 4, rect, pressed ? 0.8 : 1.0, false);
break;
case Def.ButtonGlygh.InitGamerB:
case InitGamerB:
DrawIcon(14, selected ? 17 : 5, rect, pressed ? 0.8 : 1.0, false);
break;
case Def.ButtonGlygh.InitGamerC:
case InitGamerC:
DrawIcon(14, selected ? 18 : 6, rect, pressed ? 0.8 : 1.0, false);
break;
case Def.ButtonGlygh.InitSetup:
case Def.ButtonGlygh.PauseSetup:
case InitSetup:
case PauseSetup:
DrawIcon(14, 19, rect, pressed ? 0.8 : 1.0, false);
break;
case Def.ButtonGlygh.InitPlay:
case InitPlay:
DrawIcon(14, 7, rect, pressed ? 0.8 : 1.0, false);
break;
case Def.ButtonGlygh.PauseMenu:
case Def.ButtonGlygh.ResumeMenu:
case PauseMenu:
case ResumeMenu:
DrawIcon(14, 11, rect, pressed ? 0.8 : 1.0, false);
break;
case Def.ButtonGlygh.PauseBack:
case PauseBack:
DrawIcon(14, 8, rect, pressed ? 0.8 : 1.0, false);
break;
case Def.ButtonGlygh.PauseRestart:
case PauseRestart:
DrawIcon(14, 9, rect, pressed ? 0.8 : 1.0, false);
break;
case Def.ButtonGlygh.PauseContinue:
case Def.ButtonGlygh.ResumeContinue:
case PauseContinue:
case ResumeContinue:
DrawIcon(14, 10, rect, pressed ? 0.8 : 1.0, false);
break;
case Def.ButtonGlygh.WinLostReturn:
case WinLostReturn:
DrawIcon(14, 3, rect, pressed ? 0.8 : 1.0, false);
break;
case Def.ButtonGlygh.InitBuy:
case Def.ButtonGlygh.TrialBuy:
case InitBuy:
case TrialBuy:
DrawIcon(14, 22, rect, pressed ? 0.8 : 1.0, false);
break;
case Def.ButtonGlygh.InitRanking:
case InitRanking:
DrawIcon(14, 12, rect, pressed ? 0.8 : 1.0, false);
break;
case Def.ButtonGlygh.TrialCancel:
case Def.ButtonGlygh.RankingContinue:
case TrialCancel:
case RankingContinue:
DrawIcon(14, 8, rect, pressed ? 0.8 : 1.0, false);
break;
case Def.ButtonGlygh.SetupSounds:
case Def.ButtonGlygh.SetupJump:
case Def.ButtonGlygh.SetupZoom:
case Def.ButtonGlygh.SetupAccel:
case SetupSounds:
case SetupJump:
case SetupZoom:
case SetupAccel:
DrawIcon(14, selected ? 13 : 21, rect, pressed ? 0.8 : 1.0, false);
break;
case Def.ButtonGlygh.SetupReset:
case SetupReset:
DrawIcon(14, 20, rect, pressed ? 0.8 : 1.0, false);
break;
case Def.ButtonGlygh.SetupReturn:
case SetupReturn:
DrawIcon(14, 8, rect, pressed ? 0.8 : 1.0, false);
break;
case Def.ButtonGlygh.PlayJump:
case PlayJump:
DrawIcon(14, 2, rect, pressed ? 0.6 : 1.0, false);
break;
case Def.ButtonGlygh.PlayAction:
case PlayAction:
DrawIcon(14, 12, rect, pressed ? 0.6 : 1.0, false);
break;
case Def.ButtonGlygh.PlayDown:
case PlayDown:
DrawIcon(14, 23, rect, pressed ? 0.6 : 1.0, false);
break;
case Def.ButtonGlygh.PlayPause:
case PlayPause:
DrawIcon(14, 3, rect, pressed ? 0.6 : 1.0, false);
break;
case Def.ButtonGlygh.Cheat1:
case Def.ButtonGlygh.Cheat2:
case Def.ButtonGlygh.Cheat3:
case Def.ButtonGlygh.Cheat4:
case Def.ButtonGlygh.Cheat5:
case Def.ButtonGlygh.Cheat6:
case Def.ButtonGlygh.Cheat7:
case Def.ButtonGlygh.Cheat8:
case Def.ButtonGlygh.Cheat9:
case Cheat1:
case Cheat2:
case Cheat3:
case Cheat4:
case Cheat5:
case Cheat6:
case Cheat7:
case Cheat8:
case Cheat9:
{
DrawIcon(14, 0, rect, pressed ? 0.6 : 1.0, false);
TinyPoint tinyPoint = default(TinyPoint);
tinyPoint.X = rect.Left + rect.Width / 2 - (int)originX;
TinyPoint tinyPoint = default_(new TinyPoint());
tinyPoint.X = rect.Left + rect.Width() / 2 - (int)originX;
tinyPoint.Y = rect.Top + 28;
TinyPoint pos = tinyPoint;
Text.DrawTextCenter(this, pos, Decor.GetCheatTinyText(glyph), 1.0);
break;
}
case Def.ButtonGlygh.Cheat11:
case Def.ButtonGlygh.Cheat12:
case Def.ButtonGlygh.Cheat21:
case Def.ButtonGlygh.Cheat22:
case Def.ButtonGlygh.Cheat31:
case Def.ButtonGlygh.Cheat32:
case Cheat11:
case Cheat12:
case Cheat21:
case Cheat22:
case Cheat31:
case Cheat32:
break;
}
}
public void LoadContent()
{
spriteBatch = new SpriteBatch(game1.GraphicsDevice);
bitmapText = game1.Content.Load<Texture2D>("icons/text");
bitmapButton = game1.Content.Load<Texture2D>("icons/button");
bitmapJauge = game1.Content.Load<Texture2D>("icons/jauge");
bitmapBlupi = game1.Content.Load<Texture2D>("icons/blupi");
bitmapBlupi1 = game1.Content.Load<Texture2D>("icons/blupi1");
bitmapObject = game1.Content.Load<Texture2D>("icons/object-m");
bitmapElement = game1.Content.Load<Texture2D>("icons/element");
bitmapExplo = game1.Content.Load<Texture2D>("icons/explo");
bitmapPad = game1.Content.Load<Texture2D>("icons/pad");
bitmapSpeedyBlupi = game1.Content.Load<Texture2D>("backgrounds/speedyblupi");
bitmapBlupiYoupie = game1.Content.Load<Texture2D>("backgrounds/blupiyoupie");
bitmapGear = game1.Content.Load<Texture2D>("backgrounds/gear");
spriteBatch = new SpriteBatch(game1.GraphicsDevice());
bitmapText = game1.Content.Load("icons/text", Texture2D.class);
bitmapButton = game1.Content.Load("icons/button", Texture2D.class);
bitmapJauge = game1.Content.Load("icons/jauge", Texture2D.class);
bitmapBlupi = game1.Content.Load("icons/blupi", Texture2D.class);
bitmapBlupi1 = game1.Content.Load("icons/blupi1", Texture2D.class);
bitmapObject = game1.Content.Load("icons/object-m", Texture2D.class);
bitmapElement = game1.Content.Load("icons/element", Texture2D.class);
bitmapExplo = game1.Content.Load("icons/explo", Texture2D.class);
bitmapPad = game1.Content.Load("icons/pad", Texture2D.class);
bitmapSpeedyBlupi = game1.Content.Load("backgrounds/speedyblupi", Texture2D.class);
bitmapBlupiYoupie = game1.Content.Load("backgrounds/blupiyoupie", Texture2D.class);
bitmapGear = game1.Content.Load("backgrounds/gear", Texture2D.class);
UpdateGeometry();
}
private void UpdateGeometry()
{
double num = graphics.GraphicsDevice.Viewport.Width;
double num2 = graphics.GraphicsDevice.Viewport.Height;
double num = graphics.GraphicsDevice().Viewport().Width();
double num2 = graphics.GraphicsDevice().Viewport().Height();
double val = num / 640.0;
double val2 = num2 / 480.0;
zoom = Math.Min(val, val2);
zoom = Math_.Min(val, val2);
originX = (num - 640.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;
}
public bool Finish()
public boolean Finish()
{
return true;
}
public void DrawBackground()
{
double num = graphics.GraphicsDevice.Viewport.Width;
double num2 = graphics.GraphicsDevice.Viewport.Height;
double num = graphics.GraphicsDevice().Viewport().Width();
double num2 = graphics.GraphicsDevice().Viewport().Height();
Texture2D bitmap = GetBitmap(3);
Rectangle srcRectangle = GetSrcRectangle(bitmap, 10, 10, 10, 10, 0, 0);
Rectangle destinationRectangle = new Rectangle(0, 0, (int)num, (int)num2);
spriteBatch.Begin(SpriteSortMode.BackToFront, BlendState.AlphaBlend);
spriteBatch.Draw(bitmap, destinationRectangle, srcRectangle, Color.White);
spriteBatch.End();
TinyPoint tinyPoint = default(TinyPoint);
TinyPoint tinyPoint = default_(new TinyPoint());
tinyPoint.X = (int)originX;
tinyPoint.Y = (int)originY;
TinyPoint dest = tinyPoint;
TinyRect tinyRect = default(TinyRect);
TinyRect tinyRect = default_(new TinyRect());
tinyRect.Left = 0;
tinyRect.Top = 0;
tinyRect.Right = 640;
@ -294,7 +303,7 @@ namespace WindowsPhoneSpeedyBlupi
{
pos.X = (int)((double)pos.X + originX);
pos.Y = (int)((double)pos.Y + originY);
TinyRect tinyRect = default(TinyRect);
TinyRect tinyRect = default_(new TinyRect());
tinyRect.Left = pos.X;
tinyRect.Top = pos.Y;
tinyRect.Right = pos.X + (int)(32.0 * size);
@ -307,7 +316,7 @@ namespace WindowsPhoneSpeedyBlupi
{
pos.X = (int)((double)pos.X + originX);
pos.Y = (int)((double)pos.Y + originY);
TinyRect tinyRect = default(TinyRect);
TinyRect tinyRect = default_(new TinyRect());
tinyRect.Left = pos.X;
tinyRect.Top = pos.Y;
tinyRect.Right = pos.X;
@ -318,7 +327,7 @@ namespace WindowsPhoneSpeedyBlupi
public void QuickIcon(int channel, int rank, TinyPoint pos)
{
TinyRect tinyRect = default(TinyRect);
TinyRect tinyRect = default_(new TinyRect());
tinyRect.Left = pos.X;
tinyRect.Top = pos.Y;
tinyRect.Right = pos.X;
@ -329,7 +338,7 @@ namespace WindowsPhoneSpeedyBlupi
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.Top = pos.Y;
tinyRect.Right = pos.X;
@ -338,12 +347,12 @@ namespace WindowsPhoneSpeedyBlupi
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);
}
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);
if (bitmap == null)
@ -355,20 +364,20 @@ namespace WindowsPhoneSpeedyBlupi
dest.X = (int)((double)dest.X + originX);
dest.Y = (int)((double)dest.Y + originY);
}
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 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));
spriteBatch.Begin(SpriteSortMode.BackToFront, BlendState.AlphaBlend);
spriteBatch.Draw(bitmap, destinationRectangle, value, Color.White);
spriteBatch.End();
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);
}
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)
{
@ -414,7 +423,7 @@ namespace WindowsPhoneSpeedyBlupi
num = 144;
bitmapGridY = 144;
num2 = Tables.table_explo_size[icon];
iconWidth = Math.Max(num2, 128);
iconWidth = Math_.Max(num2, 128);
gap = 0;
break;
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)
{
int width = bitmap.Bounds.Width;
int height = bitmap.Bounds.Height;
int width = bitmap.Bounds().Width;
int height = bitmap.Bounds().Height;
int num = icon % (width / bitmapGridX);
int num2 = icon / (width / bitmapGridX);
bitmapGridX += gap;
@ -494,10 +503,10 @@ namespace WindowsPhoneSpeedyBlupi
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 num2 = ((rect.Height == 0) ? iconHeight : rect.Height);
int num = ((rect.Width() == 0) ? iconWidth : rect.Width());
int num2 = ((rect.Height() == 0) ? iconHeight : rect.Height());
int num3 = (int)((double)rect.Left * zoom);
int num4 = (int)((double)rect.Top * 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();
game.Run();
package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
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;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Resources;
package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi.Properties;
// General Information about an assembly is controlled through the following
// 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")]
public class AssemblyInfo {
}
// Configuration
//[assembly: AssemblyConfiguration("")]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[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:
//using System.Reflection;
//using System.Runtime.CompilerServices;
//using System.Runtime.InteropServices;
//using System.Resources;
//
// Major Version
// Minor Version
// Build Number
// Revision
//// General Information about an assembly is controlled through the following
//// 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")]
//
// 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")]
//// Configuration
////[assembly: AssemblyConfiguration("")]
//[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
//[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
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.Resources;
using System.Runtime.CompilerServices;
using WindowsPhoneSpeedyBlupi;
import com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.internal;
//import com.openeggbert.jdotnet.System.CodeDom.Compiler.*;
//import com.openeggbert.jdotnet.System.ComponentModel.*;
import com.openeggbert.jdotnet.System.Diagnostics.*;
import com.openeggbert.jdotnet.System.Globalization.*;
import com.openeggbert.jdotnet.System.Resources.*;
//import com.openeggbert.jdotnet.System.Runtime.CompilerServices.*;
import static com.openeggbert.jdotnet.System.Type.typeof;
import com.openeggbert.jdotnet.System.object;
//[DebuggerNonUserCode]
//[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
//[CompilerGenerated]
namespace WindowsPhoneSpeedyBlupi
{
internal class Resource
@internal class Resource
{
private static ResourceManager resourceMan;
private static CultureInfo resourceCulture;
[EditorBrowsable(EditorBrowsableState.Advanced)]
internal static ResourceManager ResourceManager
//[EditorBrowsable(EditorBrowsableState.Advanced)]
@internal static ResourceManager ResourceManager()
{
get
{
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;
}
return resourceMan;
}
}
[EditorBrowsable(EditorBrowsableState.Advanced)]
internal static CultureInfo Culture
//[EditorBrowsable(EditorBrowsableState.Advanced)]
@internal static CultureInfo Culture()
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
@internal
static void setCultureInfo(CultureInfo value) {
resourceCulture = value;
}
internal static string Title
@internal static String Title()
{
get
{
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
// WindowsPhoneSpeedyBlupi.Slider
using System;
using WindowsPhoneSpeedyBlupi;
package com.openeggbert.core.phone.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 TinyPoint TopLeftCorner { get; set; }
public double Value { get; set; }
private int PosLeft
{
get
{
return TopLeftCorner.X + 22;
}
public TinyPoint TopLeftCorner() {
return getTopLeftCorner();
}
@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 + 248 - 22;
}
return TopLeftCorner.X + 22;
}
private int PosRight() {
return getPosRight();
}
private int getPosRight()
{
return TopLeftCorner.X + 248 - 22;
}
public void Draw(Pixmap pixmap)
{
TinyPoint tinyPoint = default(TinyPoint);
tinyPoint.X = TopLeftCorner.X - pixmap.Origin.X;
tinyPoint.Y = TopLeftCorner.Y - pixmap.Origin.Y;
TinyPoint tinyPoint = default_(new TinyPoint());
tinyPoint.X = TopLeftCorner.X - pixmap.Origin().X;
tinyPoint.Y = TopLeftCorner.Y - pixmap.Origin().Y;
TinyPoint dest = tinyPoint;
TinyRect tinyRect = default(TinyRect);
TinyRect tinyRect = default_(new TinyRect());
tinyRect.Left = 0;
tinyRect.Right = 124;
tinyRect.Top = 0;
tinyRect.Bottom = 22;
TinyRect rect = tinyRect;
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 num3 = 94;
TinyRect tinyRect2 = default(TinyRect);
tinyRect2.Left = PosLeft + num - num3 / 2;
tinyRect2.Right = PosLeft + num + num3 / 2;
TinyRect tinyRect2 = default_(new TinyRect());
tinyRect2.Left = PosLeft() + num - num3 / 2;
tinyRect2.Right = PosLeft() + num + num3 / 2;
tinyRect2.Top = num2 - num3 / 2;
tinyRect2.Bottom = num2 + num3 / 2;
rect = tinyRect2;
pixmap.DrawIcon(14, 1, rect, 1.0, false);
TinyRect tinyRect3 = default(TinyRect);
TinyRect tinyRect3 = default_(new TinyRect());
tinyRect3.Left = TopLeftCorner.X - 65;
tinyRect3.Right = TopLeftCorner.X - 65 + 60;
tinyRect3.Top = TopLeftCorner.Y - 10;
tinyRect3.Bottom = TopLeftCorner.Y - 10 + 60;
rect = tinyRect3;
pixmap.DrawIcon(10, 37, rect, 1.0, false);
TinyRect tinyRect4 = default(TinyRect);
TinyRect tinyRect4 = default_(new TinyRect());
tinyRect4.Left = TopLeftCorner.X + 248 + 5;
tinyRect4.Right = TopLeftCorner.X + 248 + 5 + 60;
tinyRect4.Top = TopLeftCorner.Y - 10;
@ -66,9 +80,9 @@ namespace WindowsPhoneSpeedyBlupi
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.Right = TopLeftCorner.X + 248 + 50;
tinyRect.Top = TopLeftCorner.Y - 50;
@ -76,9 +90,9 @@ namespace WindowsPhoneSpeedyBlupi
TinyRect rect = tinyRect;
if (Misc.IsInside(rect, pos))
{
double val = ((double)pos.X - (double)PosLeft) / (double)(PosRight - PosLeft);
val = Math.Max(val, 0.0);
val = Math.Min(val, 1.0);
double val = ((double)pos.X - (double)PosLeft()) / (double)(PosRight() - PosLeft());
val = Math_.Max(val, 0.0);
val = Math_.Min(val, 1.0);
if (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
// WindowsPhoneSpeedyBlupi.Sound
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework.Audio;
using WindowsPhoneSpeedyBlupi;
package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
// WindowsPhoneSpeedyBlupi.Sound
import com.openeggbert.jdotnet.System.*;
import com.openeggbert.jdotnet.System.Collections.Generic.*;
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
{
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 channel;
}
return sei.State == SoundState.Stopped;
}
public bool IsFree
{
get
{
return sei.State == SoundState.Stopped;
}
}
public Play(SoundEffect se, int channel, double volume, double balance, double? pitch, bool isLooped)
public Play(SoundEffect se, int channel, double volume, double balance, Double pitch, boolean isLooped)
{
this.channel = channel;
int num = channel * 2;
if (num >= 0 && num < tableVolumePitch.Length)
if (num >= 0 && num < tableVolumePitch.length)
{
volume *= tableVolumePitch[num];
pitch = tableVolumePitch[num + 1];
@ -44,7 +41,7 @@ namespace WindowsPhoneSpeedyBlupi
sei = se.CreateInstance();
sei.Volume = (float)volume;
sei.Pan = (float)balance;
sei.Pitch = (float)(pitch ?? 0.0);
sei.Pitch = (float)(pitch == null ? 0.0d : pitch);
sei.IsLooped = isLooped;
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.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
};
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;
@ -95,39 +92,39 @@ namespace WindowsPhoneSpeedyBlupi
{
this.game1 = game1;
this.gameData = gameData;
soundEffects = new List<SoundEffect>();
plays = new List<Play>();
soundEffects = new List_<>();
plays = new List_<>();
volume = 1.0;
SoundEffect.MasterVolume = 1f;
}
public void LoadContent()
{
if (Def.HasSound)
if (Def.HasSound())
{
for (int i = 0; i <= 92; i++)
{
string assetName = string.Format("sounds/sound{0}", i.ToString("d3"));
SoundEffect item = game1.Content.Load<SoundEffect>(assetName);
String assetName = string.Format("sounds/sound{0}", int_.of(i).ToString("d3"));
SoundEffect item = game1.Content.Load(assetName, SoundEffect.class);
soundEffects.Add(item);
}
}
}
public bool Create()
public boolean Create()
{
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;
}
@ -150,39 +147,40 @@ namespace WindowsPhoneSpeedyBlupi
{
return 0;
}
public void StopAll()
{
while (plays.Any())
{
plays[0].Stop();
plays.ElementAt(0).Stop();
plays.RemoveAt(0);
}
}
public bool PlayImage(int channel, TinyPoint pos)
public boolean PlayImage(int channel, TinyPoint pos)
{
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;
}
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;
}
if (plays.Count >= 10)
if (plays.Count() >= 10)
{
int num = 0;
while (num < plays.Count)
while (num < plays.Count())
{
if (plays[num].IsFree)
if (plays.ElementAt(num).IsFree())
{
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);
}
return true;
}
public bool PosImage(int channel, TinyPoint pos)
public boolean PosImage(int channel, TinyPoint pos)
{
return true;
}
public bool Stop(int channel)
public boolean Stop(int channel)
{
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);
}
else
@ -233,8 +231,8 @@ namespace WindowsPhoneSpeedyBlupi
pos.X -= 640;
val = 1.0 - (double)(pos.X / 640) * 2.0;
}
val = Math.Max(val, 0.0);
val = Math.Min(val, 1.0);
val = Math_.Max(val, 0.0);
val = Math_.Min(val, 1.0);
double val2 = 1.0;
if (pos.Y < 0)
{
@ -245,16 +243,15 @@ namespace WindowsPhoneSpeedyBlupi
pos.Y -= 480;
val2 = 1.0 - (double)(pos.Y / 480) * 3.0;
}
val2 = Math.Max(val2, 0.0);
val2 = Math.Min(val2, 1.0);
return Math.Min(val, val2) * volume;
val2 = Math_.Max(val2, 0.0);
val2 = Math_.Min(val2, 1.0);
return Math_.Min(val, val2) * volume;
}
private double GetBalance(TinyPoint pos)
{
double val = (double)pos.X * 2.0 / 640.0 - 1.0;
val = Math.Max(val, -1.0);
return Math.Min(val, 1.0);
val = Math_.Max(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
// WindowsPhoneSpeedyBlupi.Tables
using WindowsPhoneSpeedyBlupi;
package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
namespace WindowsPhoneSpeedyBlupi
{
public static class Tables
// 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_
public class Tables
{
private Tables() {
//Not meant to be instantiated.
}
public enum CheatCodes
{
BuildOfficialMissions,
@ -32,303 +42,9 @@ namespace WindowsPhoneSpeedyBlupi
WeelKeys
}
public static int[] table_blupi = new int[2911]
{
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_blupi = Tables_table_blupi.table_blupi;
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,
16, 5, 6, 7, 8, 9, 10, 20, 21, 22,
@ -366,13 +82,13 @@ namespace WindowsPhoneSpeedyBlupi
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,
@ -1082,29 +798,29 @@ namespace WindowsPhoneSpeedyBlupi
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,
62, 63, 63, 64, 64, 64, 65, 65, 65, 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,
62, 61, 61, 60, 60, 60, 59, 59, 59, 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,
87, 87, 88, 88, 83, 83, 82, 82, 83, 83,
@ -1113,7 +829,7 @@ namespace WindowsPhoneSpeedyBlupi
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,
85, 85, 84, 84, 79, 79, 79, 79, 80, 80,
@ -1122,27 +838,27 @@ namespace WindowsPhoneSpeedyBlupi
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,
242, 242, 242, 242, 242, 242, 242, 242, 243, 243,
@ -1162,43 +878,43 @@ namespace WindowsPhoneSpeedyBlupi
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,
68, 68, 275, 275, 271, 271, 271, 271, 272, 272,
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,
63, 63, 274, 274, 271, 271, 271, 271, 272, 272,
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,
242, 243, 244, 245, 246, 247, 248, 249, 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,
245, 244, 243, 242, 241, 240, 239, 238, 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,
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
};
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, 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,
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,
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,
62, -1, 65, -1, 60, 65, 63, 61, 62, -1,
@ -1245,23 +961,23 @@ namespace WindowsPhoneSpeedyBlupi
-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,
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,
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,
84, 83, 82, 81, 80, 79, 78, 77, 76, 75,
@ -1270,7 +986,7 @@ namespace WindowsPhoneSpeedyBlupi
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, 367, 367, 368, 368,
@ -1290,58 +1006,58 @@ namespace WindowsPhoneSpeedyBlupi
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, 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,
263, 264, 264, 265, 265, 265, 264, 264, 263, 262,
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,
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,
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,
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,
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, 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
};
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,
132, 133, 133, 134, 134, 134, 135, 135, 135, 135,
@ -1363,14 +1079,14 @@ namespace WindowsPhoneSpeedyBlupi
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,
169, 169, 168, 168, 169, 169, 169, 168, 168, 169,
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, 40, 41, 41, 41, 40, 40,
@ -1381,7 +1097,7 @@ namespace WindowsPhoneSpeedyBlupi
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,
@ -1394,11 +1110,11 @@ namespace WindowsPhoneSpeedyBlupi
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,
149, 145, 38, 36, 37, 35, 153, 147, 148, 146,
@ -1417,7 +1133,7 @@ namespace WindowsPhoneSpeedyBlupi
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,
270, 274, 269, 277, 276, 278, -1, 286, 285, 289,
@ -1425,66 +1141,66 @@ namespace WindowsPhoneSpeedyBlupi
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,
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,
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, 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,
157, 158, 159, 160, 157, 158, 159, 160, 161, 162,
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,
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
};
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,
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,
409, 408, 409, 410, -1, -1, -1, -1, -1, -1,
@ -1493,43 +1209,43 @@ namespace WindowsPhoneSpeedyBlupi
-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,
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
};
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;
@ -1545,9 +1261,9 @@ namespace WindowsPhoneSpeedyBlupi
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,
0, 0, 6, 6, 0, 50, 1, 0, 9, 9,
@ -1587,7 +1303,7 @@ namespace WindowsPhoneSpeedyBlupi
array[125] = MyResource.TX_TRAINING121;
array[131] = MyResource.TX_TRAINING122;
table_training1 = array;
int[] array2 = new int[31]
int[] array2 = new int[]
{
9, 15, 0, 100, -1, 0, 16, 16, 0, 100,
-1, 0, 19, 21, 0, 100, -1, 0, 24, 31,
@ -1600,7 +1316,7 @@ namespace WindowsPhoneSpeedyBlupi
array2[23] = MyResource.TX_TRAINING204;
array2[29] = MyResource.TX_TRAINING205;
table_training2 = array2;
int[] array3 = new int[67]
int[] array3 = new int[]
{
16, 24, 36, 40, -2, 0, 16, 24, 36, 40,
-3, 0, 22, 25, 34, 34, -3, 0, 22, 31,
@ -1622,7 +1338,7 @@ namespace WindowsPhoneSpeedyBlupi
array3[59] = MyResource.TX_TRAINING310;
array3[65] = MyResource.TX_TRAINING311;
table_training3 = array3;
int[] array4 = new int[31]
int[] array4 = new int[]
{
7, 14, 0, 100, -4, 0, 7, 19, 0, 100,
-5, 0, 20, 22, 0, 100, -4, 0, 20, 22,
@ -1635,7 +1351,7 @@ namespace WindowsPhoneSpeedyBlupi
array4[23] = MyResource.TX_TRAINING404;
array4[29] = MyResource.TX_TRAINING405;
table_training4 = array4;
table_decor_action = new int[519]
table_decor_action = new int[]
{
1, 32, -4, 4, 4, -3, -4, 2, 4, 5,
-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, -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,
@ -1703,7 +1419,7 @@ namespace WindowsPhoneSpeedyBlupi
64, 64, 64, 64, 64, 64, 64, 128, 128, 128,
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,
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
// WindowsPhoneSpeedyBlupi.Text
using WindowsPhoneSpeedyBlupi;
package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
namespace WindowsPhoneSpeedyBlupi
{
public static class Text
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
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, 2, 0, 0, -1, 0, 0, 3, 0,
@ -164,13 +175,13 @@ namespace WindowsPhoneSpeedyBlupi
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,
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, 14, 13, 15, 15, 15, 15,
@ -187,7 +198,7 @@ namespace WindowsPhoneSpeedyBlupi
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))
{
@ -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))
{
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))
{
int y = pos.Y;
int num = 0;
foreach (char c in text)
for (char c : text.toCharArray())
{
int charWidth = GetCharWidth(c, size);
DrawChar(pixmap, ref pos, c, size);
DrawChar(pixmap, pos, c, size);
num += charWidth;
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))
{
TinyPoint pos2 = default(TinyPoint);
TinyPoint pos2 = default_(new TinyPoint());
pos2.X = pos.X - GetTextWidth(text, size) / 2;
pos2.Y = pos.Y;
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))
{
return 0;
}
int num = 0;
foreach (char c in text)
for (char c : text.toCharArray())
{
num += GetCharWidth(c, size);
}
@ -263,9 +274,9 @@ namespace WindowsPhoneSpeedyBlupi
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 rank = table_char[num];
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
@namespace(name = "WindowsPhoneSpeedyBlupi")
@AllArgsConstructor
@NoArgsConstructor
public class TinyPoint extends com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.struct<TinyPoint> {
namespace WindowsPhoneSpeedyBlupi
{
public struct TinyPoint
{
public int X;
public int X;
public int Y;
public int Y;
public override string ToString()
{
return string.Format("{0};{1}", X, Y);
}
@Override
public String toString() {
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
@namespace(name = "WindowsPhoneSpeedyBlupi")
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class TinyRect extends com.openeggbert.jdotnet.JDotNet.CSharpKeyWords.struct<TinyRect> {
namespace WindowsPhoneSpeedyBlupi
{
public struct TinyRect
{
public int Left;
public int Left;
public int Right;
public int Right;
public int Top;
public int Top;
public int Bottom;
public int Bottom;
public int Width
{
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 Width() {
return Right - Left;
}
}
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;
using System.IO;
package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
//import com.openeggbert.jdotnet.System.*;
//import com.openeggbert.jdotnet.System.IO.*;
namespace WindowsPhoneSpeedyBlupi
{
public class TrialMode
{
private static DateTime trialStartTime;
public static void InitializeTrialMode()
{
// Assuming trial mode starts when the game is launched
trialStartTime = DateTime.Now;
}
public static Boolean IsTrialModeExpired()
{
return IsTrialMode7DaysLimitExpired() || IsTrialMode10MinutesLimitExpired();
}
private static bool IsTrialMode10MinutesLimitExpired()
{
// Example: Trial expires after 10 minutes
var expired = (DateTime.Now - trialStartTime).TotalMinutes > 10;
return expired;
}
private static bool IsTrialMode7DaysLimitExpired()
{
// Save trial expiration status to a file or settings
const string TRIAL_END_TIME_TXT = "trialEndTime.txt";
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;
if (expired)
{
return true; // Trial period is over
}
// Example of setting trial end time (e.g., 7 days from now)
if (!File.Exists(TRIAL_END_TIME_TXT))
{
File.WriteAllText(TRIAL_END_TIME_TXT, DateTime.Now.AddDays(7).ToString());
}
return false; // Trial period still active
}
private static int trialModeEnabled = -1;
public static bool IsTrialModeEnabled()
{
if(trialModeEnabled == 1)
{
return true;
}
if (trialModeEnabled == 0)
{
return false;
}
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;
}
static boolean IsTrialModeEnabled() {
throw new UnsupportedOperationException("Not supported yet."); // Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
}
// private static DateTime trialStartTime;
//
// public static void InitializeTrialMode()
// {
// // Assuming trial mode starts when the game is launched
// trialStartTime = DateTime.Now;
// }
//
// public static Boolean IsTrialModeExpired()
// {
// return IsTrialMode7DaysLimitExpired() || IsTrialMode10MinutesLimitExpired();
// }
// private static boolean IsTrialMode10MinutesLimitExpired()
// {
// // Example: Trial expires after 10 minutes
// var expired = (DateTime.Now - trialStartTime).TotalMinutes > 10;
// return expired;
// }
// private static boolean IsTrialMode7DaysLimitExpired()
// {
// // Save trial expiration status to a file or settings
// const string TRIAL_END_TIME_TXT = "trialEndTime.txt";
// 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;
// if (expired)
// {
// return true; // Trial period is over
// }
//
// // Example of setting trial end time (e.g., 7 days from now)
// if (!File.Exists(TRIAL_END_TIME_TXT))
// {
// File.WriteAllText(TRIAL_END_TIME_TXT, DateTime.Now.AddDays(7).ToString());
// }
//
// return false; // Trial period still active
// }
// private static int trialModeEnabled = -1;
// public static boolean IsTrialModeEnabled()
// {
// if(trialModeEnabled == 1)
// {
// return true;
// }
//
// if (trialModeEnabled == 0)
// {
// return false;
// }
//
// 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
// 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;
package com.openeggbert.core.phone.WindowsPhoneSpeedyBlupi;
namespace WindowsPhoneSpeedyBlupi
{
public static class Worlds
// WindowsPhoneSpeedyBlupi, Version=1.0.0.5, Culture=neutral, PublicKeyToken=6db12cd62dbec439
// WindowsPhoneSpeedyBlupi.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 string GameDataFilename
{
get
{
return "SpeedyBlupi";
}
}
@Getter
private static final String GameDataFilename = "SpeedyBlupi";
private static string CurrentGameFilename
{
get
{
return "CurrentGame";
}
}
@Getter
private static final String CurrentGameFilename = "CurrentGame";
public static string[] ReadWorld(int gamer, int rank)
public static String[] ReadWorld(int gamer, int rank)
{
string worldFilename = GetWorldFilename(gamer, rank);
string text = null;
String worldFilename = GetWorldFilename(gamer, rank);
String text = null;
try
{
Stream stream = TitleContainer.OpenStream(worldFilename);
@ -42,7 +44,7 @@ namespace WindowsPhoneSpeedyBlupi
text = streamReader.ReadToEnd();
stream.Close();
}
catch
catch (Exception_ e)
{
Debug.Write("Fatal error. Loading world failed: " + worldFilename + "\n");
Environment.Exit(1);
@ -51,15 +53,15 @@ namespace WindowsPhoneSpeedyBlupi
{
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();
if (userStoreForApplication.FileExists(GameDataFilename))
@ -69,13 +71,13 @@ namespace WindowsPhoneSpeedyBlupi
{
isolatedStorageFileStream = userStoreForApplication.OpenFile(GameDataFilename, FileMode.Open);
}
catch (IsolatedStorageException)
catch (IsolatedStorageException e)
{
return false;
}
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.Close();
return true;
@ -90,7 +92,7 @@ namespace WindowsPhoneSpeedyBlupi
IsolatedStorageFileStream isolatedStorageFileStream = userStoreForApplication.OpenFile(GameDataFilename, FileMode.Create);
if (isolatedStorageFileStream != null)
{
isolatedStorageFileStream.Write(data, 0, data.Length);
isolatedStorageFileStream.Write(data, 0, data.length);
isolatedStorageFileStream.Close();
}
}
@ -102,12 +104,12 @@ namespace WindowsPhoneSpeedyBlupi
{
userStoreForApplication.DeleteFile(CurrentGameFilename);
}
catch
catch (Exception_ e)
{
}
}
public static string ReadCurrentGame()
public static String ReadCurrentGame()
{
IsolatedStorageFile userStoreForApplication = IsolatedStorageFile.GetUserStoreForApplication();
if (userStoreForApplication.FileExists(CurrentGameFilename))
@ -117,348 +119,354 @@ namespace WindowsPhoneSpeedyBlupi
{
isolatedStorageFileStream = userStoreForApplication.OpenFile(CurrentGameFilename, FileMode.Open);
}
catch (IsolatedStorageException)
catch (IsolatedStorageException e)
{
return null;
}
if (isolatedStorageFileStream != null)
{
byte[] array = new byte[isolatedStorageFileStream.Length];
isolatedStorageFileStream.Read(array, 0, array.Length);
isolatedStorageFileStream.Read(array, 0, array.length);
isolatedStorageFileStream.Close();
return Encoding.UTF8.GetString(array, 0, array.Length);
return Encoding.UTF8.GetString(array, 0, array.length);
}
}
return null;
}
public static void WriteCurrentGame(string data)
public static void WriteCurrentGame(String data)
{
IsolatedStorageFile userStoreForApplication = IsolatedStorageFile.GetUserStoreForApplication();
IsolatedStorageFileStream isolatedStorageFileStream = userStoreForApplication.OpenFile(CurrentGameFilename, FileMode.Create);
if (isolatedStorageFileStream != null)
{
isolatedStorageFileStream.Write(Encoding.UTF8.GetBytes(data), 0, data.Length);
isolatedStorageFileStream.Write(Encoding.UTF8.GetBytes(data), 0, data.length());
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;
}
int num = text.IndexOf(name + "=");
int num = text.indexOf(name + "=");
if (num == -1)
{
break;
}
num += name.Length + 1;
int num2 = text.IndexOf(" ", num);
num += name.length() + 1;
int num2 = text.indexOf(" ", num);
if (num2 == -1)
{
break;
}
string[] array2 = text.Substring(num, num2 - num).Split(',');
for (int j = 0; j < array2.Length; j++)
String[] array2 = text.substring(num, num2 - num).split(",");
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;
}
else
{
} catch (NumberFormatException e) {
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)
{
return false;
}
num += name.Length + 1;
int num2 = text.IndexOf(" ", num);
num += name.length() + 1;
int num2 = text.indexOf(" ", num);
if (num2 == -1)
{
return false;
}
string value = text.Substring(num, num2 - num);
bool result;
if (bool.TryParse(value, out result))
{
String value = text.substring(num, num2 - num);
boolean result;
try {
result = Boolean.parseBoolean(value);
return result;
} catch (Exception_ e) {
}
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)
{
return 0;
}
num += name.Length + 1;
int num2 = text.IndexOf(" ", num);
num += name.length() + 1;
int num2 = text.indexOf(" ", num);
if (num2 == -1)
{
return 0;
}
string s = text.Substring(num, num2 - num);
int result;
if (int.TryParse(s, out result))
{
return result;
String s = text.substring(num, num2 - num);
try {
return Integer.parseInt(s);
} catch (NumberFormatException e) {
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)
{
return 0.0;
}
num += name.Length + 1;
int num2 = text.IndexOf(" ", num);
num += name.length() + 1;
int num2 = text.indexOf(" ", num);
if (num2 == -1)
{
return 0.0;
}
string s = text.Substring(num, num2 - num);
double result;
if (double.TryParse(s, out result))
{
return result;
String s = text.substring(num, num2 - num);
try {
return Double.parseDouble(s);
} catch (NumberFormatException e) {
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)
{
return default(TinyPoint);
return default_(new TinyPoint());
}
num += name.Length + 1;
int num2 = text.IndexOf(";", num);
num += name.length() + 1;
int num2 = text.indexOf(";", num);
if (num2 == -1)
{
return default(TinyPoint);
return default_(new TinyPoint());
}
int num3 = text.IndexOf(" ", num);
int num3 = text.indexOf(" ", num);
if (num3 == -1)
{
return default(TinyPoint);
return default_(new TinyPoint());
}
string s = text.Substring(num, num2 - num);
string s2 = text.Substring(num2 + 1, num3 - num2 - 1);
String s = text.substring(num, num2 - num);
String s2 = text.substring(num2 + 1, num3 - num2 - 1);
int result;
if (!int.TryParse(s, out result))
{
return default(TinyPoint);
try {
result = Integer.parseInt(s);
} catch (NumberFormatException e) {
return new TinyPoint();
}
int result2;
if (!int.TryParse(s2, out result2))
{
return default(TinyPoint);
try {
result2 = Integer.parseInt(s2);
} catch (NumberFormatException e) {
return new TinyPoint();
}
TinyPoint result3 = default(TinyPoint);
TinyPoint result3 = default_(new TinyPoint());
result3.X = result;
result3.Y = result2;
return result3;
}
}
return default(TinyPoint);
/**/
return default_(new TinyPoint());
}
public static int? GetDecorField(string[] lines, string section, int x, int y)
{
for (int i = 0; i < lines.Length; i++)
{
string text = lines[i];
if (text.StartsWith(section + ":"))
{
text = lines[i + 1 + x];
string[] array = text.Split(',');
if (string.IsNullOrEmpty(array[y]))
{
return -1;
}
int result;
if (int.TryParse(array[y], out result))
{
return result;
}
public static Integer GetDecorField(String[] lines, String section, int x, int y) {
for (int i = 0; i < lines.length; i++) {
String text = lines[i];
if (text.startsWith(section + ":")) {
text = lines[i + 1 + x];
String[] array = text.split(",");
if (string.IsNullOrEmpty(array[y])) {
return -1;
}
try {
return Integer.parseInt(array[y]);
} catch (NumberFormatException e) {
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;
}
string[] array = text.Substring(section.Length + 2).Split(',');
for (int j = 0; j < array.Length; j++)
String[] array = text.substring(section.length() + 2).split(",");
for (int j = 0; j < array.length; j++)
{
int result;
if (string.IsNullOrEmpty(array[j]))
{
doors[j] = 1;
}
else if (int.TryParse(array[j], out result))
{
doors[j] = result;
else {
try {
doors[j] = Integer.parseInt(array[j]);
} catch (NumberFormatException e) {
}
}
}
}
}
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(": ");
output.append(section);
output.append(": ");
}
public static void WriteIntArrayField(string name, int[] array)
public static void WriteIntArrayField(String name, int[] array)
{
output.Append(name);
output.Append("=");
for (int i = 0; i < array.Length; i++)
output.append(name);
output.append("=");
for (int i = 0; i < array.length; i++)
{
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("=");
output.Append(n.ToString(CultureInfo.InvariantCulture));
output.Append(" ");
output.append(name);
output.append("=");
output.append(string.Format(Locale.US, "%f", n));
output.append(" ");
}
public static void WriteIntField(string name, int n)
public static void WriteIntField(String name, int n)
{
output.Append(name);
output.Append("=");
output.Append(n.ToString(CultureInfo.InvariantCulture));
output.Append(" ");
output.append(name);
output.append("=");
output.append(string.Format(Locale.US, "%f", n));
output.append(" ");
}
public static void WriteDoubleField(string name, double n)
public static void WriteDoubleField(String name, double n)
{
output.Append(name);
output.Append("=");
output.Append(n.ToString(CultureInfo.InvariantCulture));
output.Append(" ");
output.append(name);
output.append("=");
output.append(string.Format(Locale.US, "%f", n));
output.append(" ");
}
public static void WritePointField(string name, TinyPoint p)
public static void WritePointField(String name, TinyPoint p)
{
output.Append(name);
output.Append("=");
output.Append(p.X.ToString(CultureInfo.InvariantCulture));
output.Append(";");
output.Append(p.Y.ToString(CultureInfo.InvariantCulture));
output.Append(" ");
output.append(name);
output.append("=");
output.append(string.Format(Locale.US, "%f", p.X));
output.append(";");
output.append(string.Format(Locale.US, "%f", p.Y));
output.append(" ");
}
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)
{
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)
{
for (int i = 0; i < doors.Length; i++)
for (int i = 0; i < doors.length; i++)
{
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()
{
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
gdxTeaVMVersion=1.0.3
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
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"
api "com.pixelgamelibrary:pixel-backend-libgdx:$pixelVersion"
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: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"}

View File

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