code wiki / (root) / nx_decl_combat_arena.nx

nx_decl_combat_arena.nx

buildroot/runtime/nx_decl_combat_arena.nx

4791 B127 linesdepth 5pulls 6 transitivereach 2 importersview sourcekind librarytopic decl
docsdependenciesstructsconstsfunctions

about

nx_decl_combat_arena.nx -- third declarative #tag-style primitive. license_tier: ORIGINAL Composes a bounded combat arena from one substrate call. Equivalent of TypeScript `#combat_arena <modifier>` directive. Differs from nx_decl_simple_scene in that the environment is BOUNDED (smaller, square, deterministic spawns) for gameplay, not for landscape rendering. Per S-class roadmap §A3 -- third slice toward the user's vision.

dependencies 5 imports · 2 importers

nx_syscalls.nx nx_types.nx nx_tier.nx nx_decl_random_environment.nx nx_decl_simple_scene.nx nx_decl_combat_arena.nx nx_decl_combat_arena_test.nx nx_decl_reflection_test.nx

imports: nx_syscalls.nxnx_types.nxnx_tier.nxnx_decl_random_environment.nxnx_decl_simple_scene.nx

imported by: nx_decl_combat_arena_test.nxnx_decl_reflection_test.nx

structs

48struct NxCombatArena

consts

26const NX_ARENA_SHAPE_SQUARE: nx_int = 0
27const NX_ARENA_SHAPE_CIRCLE: nx_int = 1
28const NX_ARENA_SHAPE_OCTAGON: nx_int = 2
29const NX_ARENA_SHAPE_HEXAGON: nx_int = 3
30const NX_ARENA_SHAPE_N: nx_int = 4

functions

32func nx_arena_shape_is_valid(s: nx_int) -> nx_int
called by 1: main
39func nx_arena_shape_name(s: nx_int) -> *u8
called by 1: main
67func _arena_default_shape(modifier: nx_int) -> nx_int
73func _arena_default_radius(modifier: nx_int) -> nx_int
79func _arena_default_obstacles(modifier: nx_int, seed: nx_int) -> nx_int
called by 1: nx_decl_combat_arena calls 1: _re_hash_mod
87func _arena_default_spawn_per_team(modifier: nx_int) -> nx_int
94func nx_decl_combat_arena(out: *NxCombatArena, modifier: nx_int, seed: nx_int) -> nx_int
123func nx_arena_alloc() -> *NxCombatArena
called by 2: mainmain calls 1: sys_mmap