In the entity inspector, collectCoin() returns a boolean since it uses tryCollectCoin() internally (same for dropCoin(), but move() returns void using the actual move() method. This is of course inconsistent.
Proposal:
Replace the notation collectCoin() by tryCollectCoin()
Replace the notationdropCoin() by dropDropCoin()
Replace the notation move(): void by tryMove(): boolean and also use tryMove() internally, for consistency
In the entity inspector,
collectCoin()
returns aboolean
since it usestryCollectCoin()
internally (same fordropCoin()
, butmove()
returnsvoid
using the actualmove()
method. This is of course inconsistent.Proposal:
collectCoin()
bytryCollectCoin()
dropCoin()
bydropDropCoin()
move(): void
bytryMove(): boolean
and also usetryMove()
internally, for consistency