keeper sometimes moves like regular outfieldplayers and sometimes players in the "shooter" state keep moving. should be fixed by using statemeachines that determine player movements and are controlled by Game and Team objects.
Suggested states:
passing: in this state a player passes to a teammate.
receiving: in this state, a player has been passed to. player remains stationary until receives ball
shooting: in this state, a player shoots the ball
chasingBall: player chases ball
dribbling: player dribbles
makingAttackingRuns: if behind ball, moves to attacking position, if beyond ball && isStriker, moves to least congested region in opposition third
makingDefensiveRuns:if beyond ball move back, and stray slightly towards ball-Y direction,else if not in defensive position, move to defensive position,
preparingForKickOff:, move to kick off position
startingKickOff: go get the ball and start (chaseball mode maybe)
startingCorner: go get the ball and start (chaseball mode maybe)
startingGoalkick: go get the ball and start (chaseball mode maybe)
preparingForCorner: move to corner position
preparingForThrowing:, go neutral
preparingForGoalKick: move to goal kick position
neutral: not moving
roaming: choosing between pass, dribble, and shoot
keeper sometimes moves like regular outfieldplayers and sometimes players in the "shooter" state keep moving. should be fixed by using statemeachines that determine player movements and are controlled by Game and Team objects.
Suggested states:
Team controlling player state:
and so on and so forth