I'm trying to implement multiplayer to my RTS game. It's not turn-based so the way I see it I should go with UDP, right?
I'm also a little bit confused about what should be sent to the server from the client. Every object displayed in the game (buildings, trees, units etc) is in an ArrayList of type GameObject (that keeps track of positions and all that good stuff). So one way to go would be to have the clients send their ArrayList to the server, and merge it with the others and then send it back. An other way would be to send the clients input (where he clicks and what's selected etc) to the server and have the server decide what should happen. That would cause a delay though when giving orders to units or whatever.
So I guess my question is, except for the one about using UDP/TCP, how I should structure the multiplayer part? What should be sent from the client to the server and so on.