Game.Bucket| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
obs
List of sprites that should not be traversable for the pathfinder.
|
int |
square_size
Allows definition of sprite size from the VGDL description.
|
avatarLastAction, avatars, block_size, bucketList, charMapping, classConst, collisionEffects, counter, definedEffects, definedEOSEffects, eosEffects, fwdModel, gameTick, historicEvents, humanPlayer, is_stochastic, isEnded, iSubTypes, key_handler, ki, kill_list, MAX_SPRITES, nextSpriteID, no_counters, no_players, num_sprites, parameters, pathf, resources_colors, resources_limits, screenSize, shieldedEffects, singletons, size, spriteGroups, spriteOrder, templateSprites, terminations, timeEffects, wi| Constructor and Description |
|---|
BasicGame(GameContent content)
Default constructor for a basic game.
|
| Modifier and Type | Method and Description |
|---|---|
VGDLSprite |
addSpriteIn(java.lang.String key,
Vector2d position)
Adds one sprites in the position indicated.
|
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,
int randomSeed)
Builds a level, receiving a file name.
|
void |
buildStringLevel(java.lang.String[] lines,
int randomSeed) |
int |
getSquareSize() |
boolean |
isGameOver()
Indicates if the game is over, or if it is still being played.
|
protected void |
parseParameters(GameContent content)
Reads the parameters of a game type.
|
_updateCollisionDict, abort, addShield, addSprite, addSprite, addSprite, addSprite, addTimeEffect, changeSpriteOrder, checkTimeOut, clearAll, clearInteractionTerminationData, createAvatars, disqualify, disqualify, eventHandling, getAvatar, getAvatar, getAvatars, getBlockSize, getCharMapping, getCollisionEffects, getDefinedEffects, getDefinedEosEffects, getEosEffects, getFullResult, getGameTick, getInteractionData, getMaxSprites, getMultiWinner, getNoCounters, getNoPlayers, getNumDisabledSprites, getNumSprites, getObservation, getObservationMulti, getParameters, getPath, getRandomGenerator, getResourceColor, getResourceLimit, getScore, getScore, getScreenSize, getSpriteData, getSpriteGroup, getSpriteOrder, getSprites, getSubSpritesGroup, getSubTypes, getTempAvatar, getTerminationData, getTerminations, getValueCounter, getWinner, getWinner, handleResult, initForwardModel, initMulti, initSprites, killSprite, loadDefaultConstr, playGame, playOnlineGame, printLearningResult, printResult, reset, reverseDirection, runGame, setAvatar, setAvatar, setAvatarLastAction, setAvatarLastAction, setCharMapping, setParameters, setStochastic, terminationHandling, tickpublic int square_size
public java.lang.String obs
public BasicGame(GameContent content)
content - Contains parameters for the game.public void buildLevel(java.lang.String gamelvl,
int randomSeed)
buildLevel in class Gamegamelvl - file name containing the level.public void buildStringLevel(java.lang.String[] lines,
int randomSeed)
buildStringLevel in class Gameprotected void parseParameters(GameContent content)
parseParameters in class Gamecontent - list of parameter-value pairs.public boolean isGameOver()
GameisGameOver in class Gamepublic VGDLSprite addSpriteIn(java.lang.String key, Vector2d position)
key - sprite type to add.position - position where the sprite will be placedpublic 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.public int getSquareSize()