I'm writing a game which is situated on a tiled map. I have a PlayState on which there's a Board which cosists of Fields.
My Board is an isometric map of a city, where each tile is a kind of road. Depending on the type of the road, there's a different texture of a car (if we go up/ down or left/ right) + on some tiles a car will take more than one texture (because it turns).
I don't know what's the correct idea of putting a car into the game. Should a class Car be part of Field? Probably not because there are moments in which the car is on more than one field. So maybe a part of Board? But the texture of a car depends on the type of the road that it is on. What is more, I must deal with the fact that once a car is on a field, it moves in the boundaries of it - so should I insert some coordinates of a field itself?
Could someone write a pseudocode of classes Board and Field with the necessary variables? And explain how I should deal with car's movements? I'm working in Java's Libgdx if it matters.