public void RenderBattleship(ShipClass _ship)
{
//Rotates the battleship based on maxturnRate and saves its current bearing to its class;
[DO THE MATH MAGIC]
(_ship._currentbearing = _newBearing)
//Move the battleship based on its current bearing and speed
[DO THE MATH MAGIC]
(_ship._currentXpos)
(_ship._currentYpos)
(_ship._currentbearing)
(_ship._currentSpeed)
(_ship._currentXpos = _newPosX)
(_ship._currentYpos = _newPosY)
(Renders the rotated picture)
}
|