Draws the connection to the resource
Draw resource transporters, e.g. minecarts or wood trucks
Initializes the miner by finding an appropriate source of resources for him
Recomputes all target entities after the game has loaded
Recomputes the target entities
Simulates a transport curve:
_____
/ \
/ \
_/ \
stayTime controls length of the plateaus transportTime controls slope of the ups / downs
This is used for the animation of the miners transporters (minecart, truck, etc.). They stay a bit, drive to the resource, stay to collect resources and then return back
The return is a tuple containing 1. the position on the Y axis and 2. the orientation (=slope) of the curve, which can be used to rotate the sprite depending on the direction
Makes miner gain resources and draws connections towards the resources