positions should always be iterables, not separate X and Y values. #178
Labels
No labels
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
priority:tier1-active
priority:tier2-foundation
priority:tier3-future
priority:tier4-deferred
Refactoring & Cleanup
system:animation
system:documentation
system:grid
system:input
system:performance
system:procgen
system:python-binding
system:rendering
system:ui-hierarchy
Tiny Feature
workflow:blocked
workflow:needs-benchmark
workflow:needs-documentation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
john/McRogueFace#178
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The ghost of #126 is haunting me.
Summary: Separate x, y Arguments in Python API
The investigation found several categories of separate x, y usage:
Callbacks (5 types)
All pass (x, y, button, action) or (x, y):
Grid Pathfinding Methods (8 methods)
All use separate coordinates:
Layer Methods (4 methods)
Automation Module (10+ functions)
All mouse operations use separate x, y:
Movement/Sizing Methods
Entity Methods
Objective
mcrfpy.Vectorortupleare acceptable outputs; vector or iterables are preferred inputs.Dual Input Support
Grid.at() is unique in accepting EITHER separate x, y OR a single (x, y) tuple. I think this pattern is acceptable only where (x, y) are the only inputs.
[Leader Issue] positions should always be iterables, not separate X and Y values.to positions should always be iterables, not separate X and Y values.commit:
d2e4791