|
MIDP3.0 | |||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Class Summary | |
---|---|
GameCanvas | The GameCanvas class provides the basis for a game user interface. |
Layer | A Layer is an abstract class representing a visual element of a game. |
LayerManager | The LayerManager manages a series of Layers. |
Sprite | A Sprite is a basic visual element that can be rendered with one of several frames stored in an Image; different frames can be shown to animate the Sprite. |
TiledLayer | A TiledLayer is a visual element composed of a grid of cells that can be filled with a set of tile images. |
The Game API package provides a series of classes that enable the development of rich gaming content for wireless devices.
Wireless devices have minimal processing power, so much of the API is intended to improve performance by minimizing the amount of work done in Java; this approach also has the added benefit of reducing application size. The API's are structured to provide considerable freedom when implementing them, thereby permitting the extensive use of native code, hardware acceleration and device-specific image data formats as needed.
The API uses the standard low-level graphics classes from MIDP (Graphics, Image, etc.) so that the high-level Game API classes can be used in conjunction with graphics primitives. For example, it would be possible to render a complex background using the Game API and then render something on top of it using graphics primitives such as drawLine, etc.
Methods that modify the state of Layer, LayerManager, Sprite, and TiledLayer objects generally do not have any immediately visible side effects. Instead, this state is merely stored within the object and is used during subsequent calls to the paint() method. This approach is suitable for gaming applications where there is a game cycle within which objects' states are updated, and where the entire screen is redrawn at the end of every game cycle.
Unless otherwise noted, passing a null argument to a constructor or method in any class or interface in this package MUST cause a NullPointerException to be thrown.
The API is comprised of five classes:@since MIDP 2.0
|
MIDP3.0 | |||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |