public class GameInfo extends CustomPropertyProvider
Game.getInfo()
and the infrastructure also internally uses this information
e.g. to setup the main window of the Game by providing an appropriate title.
It should be the first thing that you do in you application entry point to setup or load this information.
Note that it's possible to keep this information in an XML file and load it up by calling Game.setInfo(String)
.
Game.info()
,
Game.setInfo(String)
Constructor and Description |
---|
GameInfo() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCompany()
Gets the company that created the game.
|
java.lang.String |
getDescription()
Gets a textual description that explains what the game is all about.
|
java.lang.String[] |
getDevelopers()
Gets the developers of the game.
|
java.lang.String |
getName()
Gets the name of the LITIengine game.
|
java.lang.String |
getPublisher()
Gets the publisher of the game.
|
java.lang.String |
getSubTitle()
Gets the sub title of the game.
|
java.lang.String |
getTitle()
Gets the title of the game.
This will be used as the title of the game's window by default and includes the core information about the game: The game's name The game's version opt. |
java.lang.String |
getVersion()
Gets the version of the game.
|
java.lang.String |
getWebsite()
Gets the web site of this game project.
|
java.net.URL |
getWebsiteURL()
Gets the
getWebsite() as an URL object that can be used to further process the information. |
void |
setCompany(java.lang.String company)
Sets the company that created the game.
|
void |
setDescription(java.lang.String description)
Sets the game's description.
|
void |
setDevelopers(java.lang.String... developers)
Sets the game's developers.
|
void |
setName(java.lang.String name)
Sets the game's name.
|
void |
setSubTitle(java.lang.String subTitle)
Sets the game's sub title.
|
void |
setVersion(java.lang.String version)
Sets the game's version.
|
void |
setWebsite(java.lang.String website)
Sets the game's web site.
|
getBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getProperties, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, getTypeOfProperty, hasCustomProperty, removeProperty, setProperties, setTypeOfProperty, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLongValue
public java.lang.String getCompany()
public java.lang.String getDescription()
public java.lang.String getWebsite()
public java.net.URL getWebsiteURL()
getWebsite()
as an URL
object that can be used to further process the information.
(e.g. the web site can be opened in the browser).URL
URL
,
getWebsite()
public java.lang.String[] getDevelopers()
public java.lang.String getName()
public java.lang.String getPublisher()
public java.lang.String getSubTitle()
getName()
.public java.lang.String getVersion()
public java.lang.String getTitle()
getName()
,
getSubTitle()
,
getVersion()
public void setCompany(java.lang.String company)
company
- The company that created the game.public void setDescription(java.lang.String description)
description
- The game's description.getTitle()
public void setDevelopers(java.lang.String... developers)
developers
- The game's developers.public void setName(java.lang.String name)
name
- The game's name.getTitle()
public void setSubTitle(java.lang.String subTitle)
subTitle
- The game's sub title.getName()
,
getTitle()
public void setVersion(java.lang.String version)
version
- The game's version.getTitle()
public void setWebsite(java.lang.String website)
website
- The game's web site.