Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IShape Overhaul #48

Merged
merged 6 commits into from
Nov 6, 2024
Merged

IShape Overhaul #48

merged 6 commits into from
Nov 6, 2024

Conversation

SoloByte
Copy link
Collaborator

@SoloByte SoloByte commented Nov 6, 2024

  • Shape class added that inherits from the IShape interface.
  • Collider now inherits from the Shape class instead of the IShape interface.
  • ShapeContainer class implemented. It inherits from the Shape class. It implements a parent-child hierarchy system for shapes. A parent can have 1 parent and unlimited children. Children’s transforms are automatically updated based on the parent’s transform and the child’s offset.
  • Circle, Segment, Triangle, Rect, Quad, Poly, Polyline - Shape classes implemented. They inherit from ShapeContainer.

- Shape class added (inherits from IShape)
- Collider now inherits from Shape class
- ShapeContainer class started.
- Shape abstract functions changed to virtual.
- ShapeContainer abstract functions changed to virtual.
- CircleShape, SegmentShape, TriangleShape, RectShape, QuadShape, PolyShape, PolyLineShape added.
@SoloByte SoloByte self-assigned this Nov 6, 2024
@SoloByte SoloByte merged commit e828b5d into main Nov 6, 2024
@SoloByte SoloByte deleted the IShapeOverhaul branch November 6, 2024 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant