Closed stanbsky closed 2 years ago
A base entity class could standardise the API for common entity data fields and enable less verbose code.
This is WIP and I'll be adding to the list below as I encounter new refactor opportunities:
player.b2body.getFixtureList().get(0).getShape().getRadius()
someEntity.getBody().getFixtureList().get(0).getUserData()
I've done this at some point, so it's now closed. New behaviours may be added, but they don't require their own issue.
A base entity class could standardise the API for common entity data fields and enable less verbose code.
This is WIP and I'll be adding to the list below as I encounter new refactor opportunities:
player.b2body.getFixtureList().get(0).getShape().getRadius()
someEntity.getBody().getFixtureList().get(0).getUserData()
and the similar setter