Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
Method · 1 overload
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
Atlas column of the cell's tile, or -1 when the cell is empty.
int32_t get_cell_atlas_x(int32_t x, int32_t y) constAtlas column of the cell's tile, or -1 when the cell is empty.
| Parameter | Type | Meaning |
|---|---|---|
x | int32_t | Not documented; consult the linked header. |
y | int32_t | Not documented; consult the linked header. |
Returns: int32_t. Consult the linked header for its meaning.
#include "world2d_tiles.hpp"
// Assume these named values have been initialized with valid data:
// int32_t x
// int32_t y
epok::TileMapLayerComponent& object = /* obtain a valid instance */;
auto result = object.get_cell_atlas_x(x, y);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/world2d_tiles.hpp:162
cellThe value of a cell, runtime edits included.Methodclass_idPerforms `class id` as part of the world2d tiles module.Methodcooked_cellThe cooked value of a cell, ignoring runtime edits.Methoderase_cellPerforms `erase cell` as part of the world2d tiles module.Methodget_cell_atlas_yAtlas row of the cell's tile, or -1 when the cell is empty.Methodget_cell_custom_dataCustom data layer `layer` of the cell's tile; 0 for an empty cell or unknown layer.Methodis_cell_emptyReports whether cell empty as part of the world2d tiles module.Methodis_cell_solidWhether the cell's tile blocks bodies (full, rectangle or one-way collision).Methodis_visibleReports whether visible as part of the world2d tiles module.Methodlevel_attachedPerforms `level attached` as part of the world2d tiles module.Methodmap_to_world_xWorld X / Y of a cell's centre.Methodmap_to_world_yPerforms `map to world y` as part of the world2d tiles module.Method