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.
Sets neighbor as part of the object model module.
void set_neighbor(int dir,int actor)Sets neighbor as part of the object model module.
| Parameter | Type | Meaning |
|---|---|---|
dir | int | Not documented; consult the linked header. |
actor | int | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "object_model.hpp"
// Assume these named values have been initialized with valid data:
// int dir
// int actor
epok::FocusableComponent& object = /* obtain a valid instance */;
object.set_neighbor(dir, actor);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/object_model.hpp:1009
class_idPerforms `class id` as part of the object model module.MethodenabledPerforms `enabled` as part of the object model module.Methodentity_slotPerforms `entity slot` as part of the object model module.Methodis_checkedA Toggle's state; pressing Cross on a focused Toggle flips it.Methodis_focusedTrue while the canvas above this element points at it.Methodis_toggleReports whether toggle as part of the object model module.MethodneighborDirection 0 left, 1 right, 2 up, 3 down; the value is an actor index into the scene's objects array, or -1 for no neighbour that way.MethodorderPerforms `order` as part of the object model module.Methodoutline_enabledPerforms `outline enabled` as part of the object model module.Methodset_checkedSets checked as part of the object model module.Methodset_enabledSets enabled as part of the object model module.Methodset_highlightSets highlight as part of the object model module.Method