CellType¶Lava = siege.world.realm.CellType.LavaWater = siege.world.realm.CellType.WaterDistributeResult¶BREAK = siege.world.realm.DistributeResult.BREAKCONTINUE = siege.world.realm.DistributeResult.CONTINUEHIT_SURFACE = siege.world.realm.DistributeResult.HIT_SURFACESUCCESS = siege.world.realm.DistributeResult.SUCCESSLayer¶Active = siege.world.realm.Layer.ActiveBG1 = siege.world.realm.Layer.BG1BG2 = siege.world.realm.Layer.BG2BG3 = siege.world.realm.Layer.BG3BG4 = siege.world.realm.Layer.BG4Back = siege.world.realm.Layer.BackDropped = siege.world.realm.Layer.DroppedFore = siege.world.realm.Layer.ForeGround = siege.world.realm.Layer.GroundItem = siege.world.realm.Layer.ItemNone = siege.world.realm.Layer.NoneWall = siege.world.realm.Layer.WallWallAndGround = siege.world.realm.Layer.WallAndGroundLightSourceType¶Basic = siege.world.realm.LightSourceType.BasicCone = siege.world.realm.LightSourceType.ConeLightingMode¶Normal = siege.world.realm.LightingMode.NormalSimple = siege.world.realm.LightingMode.SimpleTileRenderLayer¶Background = siege.world.realm.TileRenderLayer.BackgroundForeground = siege.world.realm.TileRenderLayer.ForegroundMidground = siege.world.realm.TileRenderLayer.MidgroundUnderwaterSupport¶Allow = siege.world.realm.UnderwaterSupport.AllowDisallow = siege.world.realm.UnderwaterSupport.DisallowRequire = siege.world.realm.UnderwaterSupport.RequireActiveTile¶__init__(arg2, arg3)¶| Parameters: |
|
|---|
getId(arg2)¶Returns the tile id for this tile’s component. If tile is empty then 0 is returned.
| Parameters: | arg2 (TileSystem) – |
|---|---|
| Return type: | int |
foliageId¶FoliageSystem id index that corresponds to a specific FoliageComponentframe¶tileId¶TileSystem id index that corresponds to a specific TileComponentAutomataCell¶getMaxQuantity()¶Returns max quantity of this cell
| Return type: | int |
|---|
isActive()¶Return whether or not this cell is marked as active
| Return type: | bool |
|---|
isFull()¶Returns true if quantity==max quantity, false otherwise
| Return type: | bool |
|---|
setActive(active)¶Mark cell as active or inactive
| Parameters: | active (bool) – Set to true for active, false otherwise |
|---|
update(north, south, east, west)¶Must be defined by parent class
| Parameters: |
|
|---|---|
| Return type: | bool |
update(arg2, arg3, arg4, arg5)| Parameters: |
|
|---|
quantity¶BiomeBackground¶__setattr__(attr, value)¶Changes an attribute of this BiomeBackground
| Parameters: |
|
|---|
images¶StringList of paths to image filesloop¶BiomeData¶__repr__()¶A printable representation of this object.
| Return type: | str |
|---|
__setattr__(attr, value)¶Changes an attribute of this BiomeData
| Parameters: |
|
|---|
area¶biome¶ratio¶uid¶BiomeDataSet¶__contains__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | bool |
__contains__(arg2)| Parameters: | arg2 (BiomeData) – |
|---|---|
| Return type: | bool |
__delitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|
__getitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | object |
__iter__()¶| Return type: | object |
|---|
__len__()¶| Return type: | int |
|---|
__setitem__(arg2, arg3)¶| Parameters: |
|
|---|
clear()¶BiomeMap¶__contains__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | bool |
__delitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|
__getitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | object |
__iter__()¶| Return type: | object |
|---|
__len__()¶| Return type: | int |
|---|
__setitem__(arg2, arg3)¶| Parameters: |
|
|---|
BiomeTracker¶__setattr__(attr, value)¶Changes an attribute of this BiomeTracker
| Parameters: |
|
|---|
add(biome)¶Add a Biome to this :class:`Biome`Tracker
| Parameters: | biome (BiomeData) – The biome to add |
|---|
getBiome(position)¶Returns a the Biomedata that position is within
| Parameters: | position (Vector) – The coordinates to target |
|---|---|
| Return type: | BiomeData |
getBiomeInfo(name)¶Returns a Biome with matching name
| Parameters: | name (str) – The name of the biome to search for |
|---|---|
| Return type: | Biome |
getBiomes(area)¶Returns a BiomedataSet full of all biomes that area is within
| Parameters: | area (Rect) – The coordinates to search |
|---|---|
| Return type: | BiomeDataSet |
getRandomUndergroundPosition(depthStart, depthEnd)¶Returns a random position from depthStart to depthEnd based on underground threshold
| Parameters: |
|
|---|---|
| Return type: |
getRandomUndergroundPosition(startX, endX, depthStart, depthEnd)Returns a random position underground within the bounds provided.
| Parameters: |
|
|---|---|
| Return type: |
getUid()¶Return a unique Id based on the biome’s unique Ids
| Return type: | int |
|---|
hasBiome(uid)¶Checks if a biome is in this BiomeTracker
| Parameters: | uid (int) – Unique Id for a biome |
|---|---|
| Returns: | True if biome found, false otherwise |
| Return type: | bool |
initializeUndergroundThreshold()¶Sets up all related information for underground threshold after it has been populated
remove(biome)¶Remove a biome from this BiomeTracker
| Parameters: | biome (BiomeData) – The BiomeData to remove |
|---|
updatePlayer(player[, force=False])¶Updates the position based on entity. Also handles transitions from one biome to another
| Parameters: |
|---|
biomes¶currentBiome¶data¶thresholdWrg¶WeightedRandomGenerator for creating biomesundergroundThreshold¶undergroundVolume¶CellList¶__contains__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | bool |
__delitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|
__getitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | object |
__iter__()¶| Return type: | object |
|---|
__len__()¶| Return type: | int |
|---|
__setitem__(arg2, arg3)¶| Parameters: |
|
|---|
append(arg2)¶| Parameters: | arg2 (object) – |
|---|
extend(arg2)¶| Parameters: | arg2 (object) – |
|---|
DroppedHandler¶create( item, position, velocity, >[, delay=500]])¶Adds an item entity to the realm
| Parameters: |
|
|---|---|
| Returns: | The entity created |
| Return type: |
IdTilesMap¶__contains__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | bool |
__delitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|
__getitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | object |
__iter__()¶| Return type: | object |
|---|
__len__()¶| Return type: | int |
|---|
__setitem__(arg2, arg3)¶| Parameters: |
|
|---|
BackLayer¶transition(time, paths, offset, scroll, loop, center, move)¶Start a transition with new parameters
| Parameters: |
|
|---|
EntityLayer¶add(entity)¶Adds an entity to the EntityLayer
| Parameters: | entity (Entity) – The entity to add |
|---|
getNearby(entity)¶Returns an EntitySet containing all entities in close proximity to entity
| Parameters: | entity (Entity) – The entity to search around |
|---|---|
| Return type: | EntitySet |
getNearby(rect)Returns an EntitySet containing all entities in close proximity to rect
| Parameters: | rect (Rect) – The Coordinates to search around |
|---|---|
| Return type: | EntitySet |
getNearby(point, radius)Returns an EntitySet containing all entities in close proximity to rectangle created by parameters
| Parameters: |
|
|---|---|
| Return type: |
has(entity)¶Returns true is entity is present in this layer
| Parameters: | entity (Entity) – Target to search for |
|---|---|
| Return type: | bool |
isSpaceAvailable(area)¶Returns true if there are no entities near the area, false otherwise
| Parameters: | area (Rect) – Coordinates to search around |
|---|---|
| Return type: | bool |
remove(entity)¶Removes the entity from this layer if it is present
| Parameters: | entity (Entity) – Target entity to remove |
|---|
remove(entityId)Removes the entity from this layer if it is present
| Parameters: | entityId (int) – Id of entity to remove |
|---|
TileLayer¶clearVertices()¶Clears all vertices to ensure a clean rendering of tiles.
copyTo(targetLayer, startPosition, destination)¶Copies the contents of this TileLayer to the provided TileLayer. This does not check for overlaps in the source and destination.
| Parameters: |
|
|---|
damageTile(position, damage)¶Reduces the durability of a tile by damage
| Parameters: |
|
|---|---|
| Returns: | True if the tile was destroyed, false otherwise |
| Return type: | bool |
fullDirty()¶Mark all regions in realm as changed
getIdMap(area)¶Returns a map of ids to TileVectorList containing all tiles inside of the given area
| Parameters: | area (TileRect) – Coordinates to search within |
|---|---|
| Return type: | IdTilesMap |
getTile(arg2, arg3)¶| Parameters: |
|
|---|---|
| Return type: |
getTile(arg2)| Parameters: | arg2 (TileVector) – |
|---|---|
| Return type: | ActiveTile |
getTileComponent(arg2, arg3)¶| Parameters: |
|
|---|---|
| Return type: |
getTileComponent(arg2)| Parameters: | arg2 (TileVector) – |
|---|---|
| Return type: | TileComponent |
getTileId(arg2, arg3)¶| Parameters: |
|
|---|---|
| Return type: | int |
getTileId(arg2)| Parameters: | arg2 (TileVector) – |
|---|---|
| Return type: | int |
getTileInDirection(position, direction[, solidOnly=False])¶If position is valid add direction to position and return the tile underneath
| Parameters: |
|
|---|---|
| Returns: | A |
| Return type: |
getTileList(area, tileId[, amount=4294967295L])¶Returns a TileVectorList that contains all tile positions matching the given tileId within the provided area
| Parameters: |
|
|---|---|
| Return type: |
initialize()¶Clears and reinitializes all tile regions for world generation.
isEmpty(position)¶Checks if there is no tile at position
| Parameters: | position (TileVector) – The position to check |
|---|---|
| Returns: | True if tile at position is empty, false otherwise |
| Return type: | bool |
isLoaded(arg2, arg3)¶Returns True if the specified tile position is loaded otherwise False.
| Parameters: |
|
|---|---|
| Return type: | bool |
isLoaded(arg2)Returns True if the specified tile position is loaded otherwise False.
| Parameters: | arg2 (TileVector) – |
|---|---|
| Return type: | bool |
isSolid(position)¶Checks if the tile at position is a solid tile
| Parameters: | position (TileVector) – The position to check |
|---|---|
| Returns: | True if position is not empty and solid, false otherwise |
| Return type: | bool |
isSpaceAvailable(area)¶Returns true if there are no tile under area, false otherwise
| Parameters: | area (Rect) – Coordinates to search within |
|---|---|
| Return type: | bool |
overlaps( rect, solidOnly, includeTouching[, ignoreTiles=<siege.util.Uint32Set)¶Returns all tiles under the area rect
| Parameters: | |
|---|---|
| Return type: |
setFoliage(arg2, arg3)¶| Parameters: |
|
|---|
setTile(position, tileId)¶Changes the tile type at position to the type specified by tileId
| Parameters: |
|
|---|
LayerManager¶__getitem__(layer)¶Returns the LayerBase of type layer. If layer is not in manager it will return an empty LayerBase.
| Parameters: | layer (Layer) – Layer to search for |
|---|---|
| Return type: | LayerBase |
__setattr__(attr, value)¶Changes an attribute of this LayerManager
| Parameters: |
|
|---|
canChangeTile(layer, position, tileId)¶Returns true if tile at the position can be changed to a new tile of tileId
| Parameters: |
|
|---|---|
| Returns: | True if change can occur, false otherwise |
| Return type: | bool |
distanceFromTile(entity, position)¶Returns the distance from the center of entity to the center of the ground tile at position
| Parameters: | |
|---|---|
| Returns: | FLT_MAX if position is invalid, otherwise returns distance |
| Return type: | float |
getOrdered()¶Returns all layers stored in this LayerManager, in sorted order.
| Return type: | Layers |
|---|
isSpaceAvailable(layer, area)¶Returns the value from a call to isSpaceAvailable on target layer
| Parameters: | |
|---|---|
| Return type: | bool |
setTile(layer, tilePos, tileId[, forced=False])¶Returns true if tile at the position is successfully changed to a new tile of tileId
| Parameters: |
|
|---|---|
| Returns: | True if change can occur, false otherwise |
| Return type: | bool |
setTile(layer, tilePos, tileId, forced)Returns true if tile at the position is successfully changed to a new tile of tileId
| Parameters: |
|
|---|---|
| Returns: | True if change can occur, false otherwise |
| Return type: | bool |
Layers¶__contains__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | bool |
__delitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|
__getitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | object |
__iter__()¶| Return type: | object |
|---|
__len__()¶| Return type: | int |
|---|
__setitem__(arg2, arg3)¶| Parameters: |
|
|---|
append(arg2)¶| Parameters: | arg2 (object) – |
|---|
extend(arg2)¶| Parameters: | arg2 (object) – |
|---|
LightSource¶angle¶brightness¶center¶color¶decay¶direction¶enabled¶intensity¶name¶LightComponent.onVisible¶position¶size¶type¶LightSourceData¶angle¶brightness¶color¶decay¶direction¶enabled¶intensity¶lightType¶name¶LightComponent.onVisible¶size¶LightSourceDataList¶__contains__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | bool |
__delitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|
__getitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | object |
__iter__()¶| Return type: | object |
|---|
__len__()¶| Return type: | int |
|---|
__setitem__(arg2, arg3)¶| Parameters: |
|
|---|
append(arg2)¶| Parameters: | arg2 (object) – |
|---|
extend(arg2)¶| Parameters: | arg2 (object) – |
|---|
LightSourceMap¶__contains__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | bool |
__delitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|
__getitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | object |
__iter__()¶| Return type: | object |
|---|
__len__()¶| Return type: | int |
|---|
__setitem__(arg2, arg3)¶| Parameters: |
|
|---|
MapConflictRegionList¶__contains__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | bool |
__delitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|
__getitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | object |
__iter__()¶| Return type: | object |
|---|
__len__()¶| Return type: | int |
|---|
__setitem__(arg2, arg3)¶| Parameters: |
|
|---|
append(arg2)¶| Parameters: | arg2 (object) – |
|---|
extend(arg2)¶| Parameters: | arg2 (object) – |
|---|
PhysicsCollision¶__setattr__(attr, value)¶Changes an attribute of this PhysicsCollision
| Parameters: |
|
|---|
component¶PhysicsComponent of the collisionshouldCollide¶PhysicsComponentList¶__contains__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | bool |
__delitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|
__getitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | object |
__iter__()¶| Return type: | object |
|---|
__len__()¶| Return type: | int |
|---|
__setitem__(arg2, arg3)¶| Parameters: |
|
|---|
append(arg2)¶| Parameters: | arg2 (object) – |
|---|
extend(arg2)¶| Parameters: | arg2 (object) – |
|---|
PhysicsHandler¶__setattr__(attr, value)¶Changes an attribute of this PhysicsHandler
| Parameters: |
|
|---|
add(entity)¶Adds entity to this PhysicsHandler
| Parameters: | entity (Entity) – Entity to add |
|---|
getCollisionX(entityId, body)¶Checks for collisions on the x axis of a body
| Parameters: |
|
|---|---|
| Return type: |
getCollisionX(entityId, body, area, direction, bodyWidth)Checks for collisions on the x axis of a body in area
| Parameters: |
|
|---|---|
| Returns: | Collision data from results |
| Return type: |
getCollisionY(entityId, component)¶Checks for collisions on the y axis of a body
| Parameters: |
|
|---|---|
| Return type: |
getCollisionY(entityId, body, area, direction, bodyWidth)Checks for collisions on the y axis of a body in area
| Parameters: |
|
|---|---|
| Returns: | Collision data from resutls |
| Return type: |
getTouching(body, direction)¶Return a list of all physic bodies that touch body moved in direction
| Parameters: |
|
|---|---|
| Return type: |
isOnSlope(entity)¶Checks if entity is on a slope
| Parameters: | entity (Entity) – |
|---|---|
| Returns: | True if entity is colliding with a slope, false otherwise |
| Return type: | bool |
remove(entity)¶Removes entity to this PhysicsHandler
| Parameters: | entity (Entity) – Entity to remove |
|---|
separateSlope(physics, collision)¶Adjust a physics body according to a collision with a slope
| Parameters: |
|
|---|
separateX(body1, body2)¶Seperate two overlapping bodies on the x axis
| Parameters: |
|
|---|---|
| Returns: | True if bodies no longer overlap on the x axis, false otherwise |
| Return type: | bool |
separateY(body1, body2)¶Seperate two overlapping bodies on the y axis
| Parameters: |
|
|---|---|
| Returns: | True if bodies no longer overlap on the y axis, false otherwise |
| Return type: | bool |
PlacementHandler¶calculatePosition(arg2, mousePos, entity)¶Finds nearest valid new position based on mouse position, entity positions, and level structure
| Parameters: | |
|---|---|
| Returns: | Empty |
| Return type: |
checkPosition(arg2, result, neighbor, entity, x, y)¶Checks the results of calculatePosition on entity and neighbor added to x,y.
| Parameters: |
|
|---|---|
| Returns: | HIT_SURFACE if a solid tile is found. CONTINUE is open space is found. SUCCESS if there is space |
| Return type: |
createPlacement(position, entity, isFlipped)¶Convert an entity into a placed item
| Parameters: | |
|---|---|
| Return type: |
destroyPlacement(entity)¶Create a new dropped entity and destroy current one
| Parameters: | entity (Entity) – Entity to convert |
|---|---|
| Returns: | The new dropped entity |
| Return type: | Entity |
findSpace(arg2, content, realmArea, axisType)¶Returns vector to available space near content in direction of axisType
| Parameters: |
|
|---|---|
| Return type: |
onCreate¶onDestroy¶Realm¶__setattr__(attr, value)¶Changes an attribute of this Realm
| Parameters: |
|
|---|
add(arg2, player)Adds an player to this realm
| Parameters: |
|
|---|
canPlaceItem(player, position)¶Checks if the provided location is valid for the player to place an item at.
| Parameters: | |
|---|---|
| Return type: | bool |
canPlaceTile(player, item, targetLayer, position)¶Checks if the provided location is valid for the player to place a tile at.
| Parameters: | |
|---|---|
| Return type: | bool |
clear()¶Removes all layers from this realm
getClosestPlayer(position)¶Returns the closest player to position
| Parameters: | position (Vector) – Coordinates to search near |
|---|---|
| Return type: | object |
getCollectable(player, position)¶| Parameters: | |
|---|---|
| Return type: |
getHarvestable(player, position)¶| Parameters: | |
|---|---|
| Return type: |
getInteracted(player, position[, eventName='interact'])¶Returns an entity that player can interact with at position
| Parameters: | |
|---|---|
| Return type: |
getInteracted(player, position, events)Returns an entity that player can interact with at position
| Parameters: |
|
|---|---|
| Return type: |
getTargeted(player, position[, filter=None])¶Returns an entity that can be targeted at position based on filter rules
| Parameters: | |
|---|---|
| Return type: |
getValidPositionForEntity(entity, area[, onGround=True])¶Attempts to find a valid position for the entity to be placed. Returns Vector(0, 0) if no position is found.
| Parameters: | |
|---|---|
| Return type: |
isActive()¶Returns true if there are any players in this realm, false otherwise
| Return type: | bool |
|---|
remove(player)Removes a player from this realm
| Parameters: | player (Player) – The player to remove |
|---|
save(stream)¶Save this realm to a stream
| Parameters: | stream (DataStream) – Where to write to |
|---|
tearDown()¶update(frameTime)¶Update all sub systems in this realm
| Parameters: | frameTime (int) – elapsed time this frame |
|---|
create(arg1, arg2, arg3, game, uid, name, realmSize, groundLevel)¶Creates a new realm according to parameters and returns it
| Parameters: | |
|---|---|
| Return type: |
load(game, path, time, stream)¶Loads in a realm from a stream and returns it
| Parameters: |
|
|---|---|
| Return type: |
automata¶AutomataManager for this realmbiomeTracker¶BiomeTracker for this realmdropped¶DroppedHandler for this realmfoliage¶FoliageHandler for this realmgroundLevel¶layers¶LayerManager for this realmlighting¶loader¶RealmLoader for this realmloopWidth¶name¶onCreateRemnaSpring¶onPlayerEnter¶onPlayerLeave¶options¶path¶physics¶PhysicsHandler for this realmplacement¶PlacementHandler for this realmplayers¶remnaSpringRegions¶remnaSpringTimer¶size¶startArea¶startCrystal¶surfaceLevel¶uid¶RealmArea¶__init__(area[, onSurface=False[, isUnderground=False[, allowLooping=True]]])¶| Parameters: |
|
|---|
__setattr__(attr, value)¶Changes an attribute of this RealmArea
| Parameters: |
|
|---|
randomDistribute(biometracker, callback, max)¶Randomly use callback function over this RealmArea
| Parameters: |
|
|---|
isUnderground¶onSurface¶RealmInfo¶__setattr__(attr, value)¶Changes an attribute of this BiomeBackground
| Parameters: |
|
|---|
unpack(stream)¶Reads data from a stream
| Parameters: | stream (DataStream) – Where to read from |
|---|
pack(realm, stream)¶Writes data from realm to the stream
| Parameters: |
|
|---|
groundLevel¶path¶regions¶startArea¶RealmInfoList¶__contains__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | bool |
__delitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|
__getitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | object |
__iter__()¶| Return type: | object |
|---|
__len__()¶| Return type: | int |
|---|
__setitem__(arg2, arg3)¶| Parameters: |
|
|---|
append(arg2)¶| Parameters: | arg2 (object) – |
|---|
extend(arg2)¶| Parameters: | arg2 (object) – |
|---|
RealmMap¶addMarker(arg2, arg3, arg4, arg5)¶| Parameters: |
|
|---|
addMarker(arg2, arg3, arg4, arg5)| Parameters: |
|
|---|
moveFullscreen(arg2, arg3)¶| Parameters: |
|
|---|
removeMarker(arg2, arg3)| Parameters: |
|
|---|
zoomIn()¶| Return type: | bool |
|---|
zoomOut()¶| Return type: | bool |
|---|
conflictRegions¶isVisible¶origin¶position¶RealmSize¶__init__(arg2, arg3)¶| Parameters: |
|
|---|
getRegionId(arg2)¶Gets the regionId for a given Vector position
| Parameters: | arg2 (Vector) – |
|---|---|
| Return type: | int |
getRegionId(arg2)Gets the regionId for a given TileVector position
| Parameters: | arg2 (TileVector) – |
|---|---|
| Return type: | int |
getRegionTilePosition(arg2)¶Gets the tile position of the region given a region id.
| Parameters: | arg2 (int) – |
|---|---|
| Return type: | TileVector |
getSegmentId(arg2)¶Gets the segmentId for a given Vector position
| Parameters: | arg2 (Vector) – |
|---|---|
| Return type: | int |
getSegmentId(arg2)Gets the segmentId for a given TileVector position
| Parameters: | arg2 (TileVector) – |
|---|---|
| Return type: | int |
getSegmentTilePosition(arg2)¶Gets the tile position of the segment given a segment id.
| Parameters: | arg2 (int) – |
|---|---|
| Return type: | TileVector |
getValidRegionId(arg2)¶Gets the valid region id by looping it around the world seam.
| Parameters: | arg2 (int) – |
|---|---|
| Return type: | int |
isTileValid(arg2, arg3)¶Checks if the given tile coordinates are within the bounds of the realm
| Parameters: |
|
|---|---|
| Return type: | bool |
isValid(arg2)¶Checks if a given tile position is within the bounds of the realm
| Parameters: | arg2 (TileVector) – |
|---|---|
| Return type: | bool |
chunkCount¶chunkHeight¶chunkWidth¶halfHeight¶halfWidth¶height¶loopTileWidth¶loopWidth¶regionCount¶regionHeight¶regionWidth¶segmentCount¶segmentHeight¶segmentWidth¶size¶subtileCount¶subtileHeight¶subtileWidth¶tileCount¶tileHeight¶tileWidth¶width¶TileList¶__contains__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | bool |
__delitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|
__getitem__(arg2)¶| Parameters: | arg2 (object) – |
|---|---|
| Return type: | object |
__iter__()¶| Return type: | object |
|---|
__len__()¶| Return type: | int |
|---|
__setitem__(arg2, arg3)¶| Parameters: |
|
|---|
append(arg2)¶| Parameters: | arg2 (object) – |
|---|
extend(arg2)¶| Parameters: | arg2 (object) – |
|---|
AutomataManager¶__setattr__(attr, value)¶Changes an attribute of this BiomeBackground
| Parameters: |
|
|---|
activateCells(area)¶Mark all cells within area as active
| Parameters: | area (Rect) – Coordinates to search |
|---|
activateCells(area)Mark all cells within area as active
| Parameters: | area (PixelRect) – Coordinates to search |
|---|
clearNode(x, y)¶Remove cell and sub cells from simulation
| Parameters: |
|
|---|
findCells(area, cellType, requiresFull)¶Return a list of cells that are within area
| Parameters: | |
|---|---|
| Return type: |
findCells(area, cellType, requiresFull)Return a list of cells that are within area
| Parameters: | |
|---|---|
| Return type: |
getActiveCount()¶Return the number of active cells
| Return type: | int |
|---|
getCell(position)¶Return the first matching cell from this simulation
| Parameters: | position (Vector) – The coordinates for the search |
|---|---|
| Returns: | Matching cell if found or an empty AutomataCell if not found |
| Return type: | AutomataCell |
getCells(area)¶Return a list of cells that are within area
| Parameters: | area (Rect) – Coordinates to search |
|---|---|
| Return type: | CellList |
getCells(area)Return a list of cells that are within area
| Parameters: | area (PixelRect) – Coordinates to search |
|---|---|
| Return type: | CellList |
isSettled()¶Returns true if active count is 0
| Return type: | bool |
|---|
setCell(x, y, cell)¶Adds a cell to the simulation and activates it
| Parameters: |
|
|---|
setCell(position, cell)Adds a cell to the simulation and activates it
| Parameters: |
|
|---|
simulate()¶Run one step of simulation
activeCells¶skippedCells¶FILE_VERSION = 2Subsystem)Subsystem)