Entity knowledge contents: make map data available directly through GridPointState #16

Open
opened 2024-03-09 18:47:43 +00:00 by john · 0 comments
Owner

Notes say:
21 feat: Grid strict mode: Entity's GridPointState (discovered, visible) should include a point member: None if not discovered, a unmodified version of the GridPoint object if discovered but not visible, and a up-to-date GridPoint with .entities sub-member (entities at that visible GridPoint)

  • Strict - the entity's at method returns a GridPointState ("gps") instance with these values:
    • gps.discovered == False -> gps.point == None No knowledge
    • gps.discovered == True && gps.visible == False -> gps.point is a GridPoint instance, but that instance has no .entities collection. It's also a copy of the GridPoint when it was last seen, not as it currently is.
    • gps.visible == True -> gps.point is a GridPoint pointing at the Grid's vector, and includes a .entities collection of the Entities presently at that position (list of items, etc)
Notes say: 21 feat: Grid strict mode: Entity's GridPointState (discovered, visible) should include a point member: None if not discovered, a unmodified version of the GridPoint object if discovered but not visible, and a up-to-date GridPoint with `.entities` sub-member (entities at that visible GridPoint) * **Strict** - the entity's `at` method returns a GridPointState ("`gps`") instance with these values: * `gps.discovered == False` -> `gps.point == None` No knowledge * `gps.discovered == True && gps.visible == False` -> `gps.point` is a GridPoint instance, but that instance has no `.entities` collection. It's also a copy of the GridPoint when it was last seen, not as it currently is. * `gps.visible == True` -> `gps.point` is a GridPoint pointing at the Grid's vector, and includes a `.entities` collection of the Entities presently at that position (list of items, etc)
john added the
Major Feature
label 2024-03-09 18:47:43 +00:00
john added this to the Alpha Release Targets milestone 2024-03-13 14:53:26 +00:00
Sign in to join this conversation.
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: john/McRogueFace#16
No description provided.