EPOK RUNTIME
epok::world2d::Service
Class
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.
Class
Class declared by the world2d-service module for the world2d service module.
Basic usage
This generated sketch illustrates syntax for reaching the type; adapt it to the actual API contract. Open a member below for an operation-specific example.
C++ example
#include "world2d_service.hpp"
epok::world2d::Service& value = /* obtain a valid instance from your game */;Fields and constants
Public methods
active_cameraPerforms `active camera` as part of the world2d service module.Methodactor_atPerforms `actor at` as part of the world2d service module.MethodbackgroundBackground colour of the active camera, or null to keep the engine default.MethodconstrainPerforms `constrain` as part of the world2d service module.Methodeach_particle_ofVisits (position, age fraction) of every live particle of `emitter`, oldest slots first.Function templateedit_forgetPerforms `edit forget` as part of the world2d service module.Methodedit_lookup---- runtime tile edits ------------------------------------------------------------Methodedit_storePerforms `edit store` as part of the world2d service module.Methodjoint_endsThe two ends of a joint: positions, bodies (null for a fixed end) and whether valid.MethodmovePerforms `move` as part of the world2d service module.Methodnavigate---- simulation step --------------------------------------------------------------- After the level tick: animate, resolve this step's colliders and triggers, move the cameras to where the actors ended up, then scroll the parallax layers after them.MethodoverlapPerforms `overlap` as part of the world2d service module.MethodraycastPerforms `raycast` as part of the world2d service module.Methodrelease---- particles ---------------------------------------------------------------------MethodresetResets reset as part of the world2d service module.Methodsimulate_bodiesPerforms `simulate bodies` as part of the world2d service module.MethodspringPerforms `spring` as part of the world2d service module.MethodstepPerforms `step` as part of the world2d service module.Function templatesync---- collision ---------------------------------------------------------------------Methodtile_atPerforms `tile at` as part of the world2d service module.MethodStatic methods
dispatchPerforms `dispatch` as part of the world2d service module.Function templateexchangeA one-dimensional collision along `axis`, with the lower restitution of the two.MethodfollowPerforms `follow` as part of the world2d service module.MethodmagnitudePerforms `magnitude` as part of the world2d service module.MethodnoticeWhether a notifier's rectangle is inside the view; reports changes and, when asked, deactivates its owner off screen.MethodplanPerforms `plan` as part of the world2d service module.Methodposition_ofPerforms `position of` as part of the world2d service module.Methodrigid_of---- rigid bodies --------------------------------------------------------------------MethodtimesPerforms `times` as part of the world2d service module.Method