Package de.gurkenlabs.litiengine
Class GameInfo
java.lang.Object
de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyProvider
de.gurkenlabs.litiengine.GameInfo
- All Implemented Interfaces:
ICustomPropertyProvider
The
GameInfo class contains basic information about a LITIENGINE game. The information can be accessed via
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).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the company that created the game.Gets a textual description that explains what the game is all about.String[]Gets the developers of the game.getName()Gets the name of the LITIENGINE game.Gets the publisher of the game.Gets the sub title of the game.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.Gets the version of the game.Gets the web site of this game project.Gets thegetWebsite()as anURLobject that can be used to further process the information.voidsetCompany(String company) Sets the company that created the game.voidsetDescription(String description) Sets the game's description.voidsetDevelopers(String... developers) Sets the game's developers.voidSets the game's name.voidsetSubTitle(String subTitle) Sets the game's sub title.voidsetVersion(String version) Sets the game's version.voidsetWebsite(String website) Sets the game's web site.Methods inherited from class de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyProvider
getBoolValue, getBoolValue, getByteValue, getByteValue, getCharValue, getCharValue, getColorValue, getColorValue, getCommaSeparatedStringValues, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getMapObjectId, getProperties, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, hasCustomProperty, removeProperty, setProperties, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
-
Constructor Details
-
GameInfo
public GameInfo()Initializes a new instance of theGameInfoclass.
-
-
Method Details
-
getCompany
Gets the company that created the game.- Returns:
- The company that created the game.
-
getDescription
Gets a textual description that explains what the game is all about.- Returns:
- The game's description.
-
getWebsite
Gets the web site of this game project.- Returns:
- The web site of the game.
-
getWebsiteURL
Gets thegetWebsite()as anURLobject that can be used to further process the information. (e.g. the web site can be opened in the browser).- Returns:
- The game's web site as
URL - See Also:
-
getDevelopers
Gets the developers of the game. This can e.g. be used for credits.- Returns:
- The game's developers.
-
getName
Gets the name of the LITIENGINE game.- Returns:
- The game's name.
-
getPublisher
Gets the publisher of the game.- Returns:
- The game's publisher.
-
getSubTitle
Gets the sub title of the game. It is basically an addendum to thegetName().- Returns:
- The game's sub title.
-
getVersion
Gets the version of the game.- Returns:
- The game's version.
-
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. The game's subtitle
- Returns:
- The game's title.
- See Also:
-
setCompany
Sets the company that created the game.- Parameters:
company- The company that created the game.
-
setDescription
Sets the game's description. This can be seen as additional information about the game and will not be part of the game's title.- Parameters:
description- The game's description.- See Also:
-
setDevelopers
Sets the game's developers.- Parameters:
developers- The game's developers.
-
setName
Sets the game's name.
This is the most basic information about a game and will be part of the game's title.- Parameters:
name- The game's name.- See Also:
-
setSubTitle
Sets the game's sub title.
This is basically an addendum to the game's name and will also be part of the game's title.- Parameters:
subTitle- The game's sub title.- See Also:
-
setVersion
Sets the game's version.
This is a textual representation of the game's version and will also be part of the game's title.
Examples for good semantic version strings:- v0.1.0
- 0.1.5.2
- v1.0.0-RC1
- v0.0.1-alpha
- Parameters:
version- The game's version.- See Also:
-
setWebsite
Sets the game's web site.- Parameters:
website- The game's web site.
-