public class BasicGame extends Game
Game.Bucket| Modifier and Type | Field and Description |
|---|---|
int |
square_size
Allows definition of sprite size from the VGDL description.
|
avatar, block_size, bucketList, charMapping, classConst, collisionEffects, definedEffects, definedEOSEffects, eosEffects, frame_rate, fwdModel, gameTick, historicEvents, is_stochastic, isEnded, iSubTypes, ki, kill_list, MAX_SPRITES, nextSpriteID, num_sprites, resources_colors, resources_limits, score, screenSize, singletons, size, spriteGroups, spriteOrder, terminations, winner| Constructor and Description |
|---|
BasicGame(GameContent content)
Default constructor for a basic game.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSpritesIn(java.util.ArrayList<java.lang.String> keys,
Vector2d position)
Adds all sprites that 'c' represents in the position indicated.
|
void |
buildLevel(java.lang.String gamelvl)
Builds a level, receiving a file name.
|
protected void |
parseParameters(GameContent content)
Reads the parameters of a game type.
|
_updateCollisionDict, addSprite, addSprite, addSprite, checkTimeOut, clearAll, disqualify, eventHandling, getAvatar, getCharMapping, getCollisionEffects, getDefinedEffects, getDefinedEosEffects, getEosEffects, getGameTick, getNumSprites, getObservation, getRandomGenerator, getResourceColor, getResourceLimit, getScreenSize, getSpriteGroup, getSpriteOrder, getSprites, getTerminations, getWinner, initForwardModel, initSprites, isGameOver, killSprite, playGame, reset, reverseDirection, runGame, setAvatar, setStochastic, terminationHandling, tickpublic int square_size
public BasicGame(GameContent content)
content - Contains parameters for the game.public void buildLevel(java.lang.String gamelvl)
GamebuildLevel in class Gamegamelvl - file name containing the level.protected void parseParameters(GameContent content)
parseParameters in class Gamecontent - list of parameter-value pairs.public void addSpritesIn(java.util.ArrayList<java.lang.String> keys,
Vector2d position)
keys - List of sprite types to add.position - position where all these sprites will be placed.