|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.co.javagear.Setup
public final class Setup
Global system settings.
Nested Class Summary | |
---|---|
static class |
Setup.System
The different kinds of systems for which ROMs can be read. |
Field Summary | |
---|---|
static int |
GG_HEIGHT
GG Screen Height. |
static int |
GG_WIDTH
GG Screen Width. |
static int |
GG_X_OFFSET
GG Window Starts Here (x). |
static int |
GG_Y_OFFSET
GG Window Starts Here (y). |
private boolean |
ggModeActive
GG Mode. |
private int |
hEnd
Horizontal Viewport End. |
private int |
hEndScaled
Horizontal Viewport End (Scaled Mode). |
private int |
hEndScaledGG
Horizontal Viewport End (Scaled Game Gear Mode). |
private int |
hStart
Horizontal Viewport Start. |
private int |
hStartScaled
Horizontal Viewport Start (Scaled Mode). |
private boolean |
pauseButton
SMS Pause Button. |
private int |
scale
The viewport's scale. |
static int |
SMS_HEIGHT
SMS Screen Height. |
static int |
SMS_WIDTH
SMS Screen Width. |
private boolean |
smsModeActive
SMS Mode. |
private Setup.System |
system
The system being emulated. |
private int |
vEnd
Vertical Viewport End. |
private int |
vEndScaled
Vertical Viewport End (Scaled Mode). |
private int |
vEndScaledGG
Vertical Viewport End (Scaled Game Gear Mode). |
private int |
vStart
Vertical Viewport Start. |
private int |
vStartScaled
Vertical Viewport Start (Scaled Mode). |
static java.lang.String |
ZIP_FILE_EXTENSION
The extension Zip files containing SMS or GG ROMs should have. |
Constructor Summary | |
---|---|
Setup()
Setup. |
Method Summary | |
---|---|
int |
getHEnd()
Return the horizontal viewport end. |
int |
getHEndScaled()
Return the horizontal viewport end (scaled mode). |
int |
getHEndScaledGG()
Return the horizontal viewport end (scaled Game Gear mode). |
int |
getHStart()
Return the horizontal viewport start. |
int |
getHStartScaled()
Return the horizontal viewport start (scaled mode). |
int |
getScale()
Return the viewport's scale. |
Setup.System |
getSystem()
Getter for property system. |
int |
getVEnd()
Return the vertical viewport end. |
int |
getVEndScaled()
Return the vertical viewport end (scaled mode). |
int |
getVEndScaledGG()
Return the vertical viewport end (scaled Game Gear mode). |
int |
getVStart()
Return the vertical viewport start. |
int |
getVStartScaled()
Return the vertical viewport start (scaled mode). |
boolean |
isPauseButton()
Returns true if the SMS is paused and false otherwise. |
void |
setPauseButton(boolean pause)
Set if the SMS is paused. |
void |
setScreenSize(int s)
Set Screen Size. |
void |
setSystem(Setup.System system)
Setter for property system. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ZIP_FILE_EXTENSION
public static final int SMS_WIDTH
public static final int SMS_HEIGHT
public static final int GG_WIDTH
public static final int GG_HEIGHT
public static final int GG_X_OFFSET
public static final int GG_Y_OFFSET
private Setup.System system
private boolean smsModeActive
private boolean ggModeActive
private int hStart
private int hEnd
private int vStart
private int vEnd
private int hStartScaled
private int vStartScaled
private int hEndScaled
private int vEndScaled
private int hEndScaledGG
private int vEndScaledGG
private int scale
private boolean pauseButton
Constructor Detail |
---|
public Setup()
Method Detail |
---|
public Setup.System getSystem()
public void setSystem(Setup.System system) throws java.lang.IllegalArgumentException
system
- New value of property system.
java.lang.IllegalArgumentException
- if system is neither System.SMS nor System.GGpublic int getHStart()
public int getHEnd()
public int getVStart()
public int getVEnd()
public int getHStartScaled()
public int getVStartScaled()
public int getHEndScaled()
public int getVEndScaled()
public int getHEndScaledGG()
public int getVEndScaledGG()
public int getScale()
public boolean isPauseButton()
true
if the SMS is paused and false
otherwise.
true
if the SMS is paused and false
otherwise.public void setPauseButton(boolean pause)
pause
- true
to pause the SMS, false
otherwise.public void setScreenSize(int s)
s
- Screen Size will be (normal * s)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |