Home » Stars! Clones, Extensions, Modding » Stars! Nova - Development » Orders
Re: Orders |
Thu, 07 July 2011 08:17 |
|
Aeglos | | | Messages: 142
Registered: May 2011 Location: Chile | |
|
Alrighty then.
I was thinking of adding a collection to ClientState which holds Order objects. We simply add/remove them there when needed.
Order would be a common interface or base class, and there would be concrete implementations; WaypointOrder, ProductionOrder, MergeOrder, RenameOrder, etc. Or separated by a Type variable.
Showing state+orders is the trickier part. I can think of two things right now.
Parse the orders after the state, which would be similar to what the server should do. They could use a common order parser, or do it on a per case basis on the client.
Or, hold two state copies on the client, the initial and an updated one, and for each change we both update the state and issue and order. The client sends only orders down to the server, and discards it's changed state each turn in favor for the one on the intel. This feels terribly redundant, but could be easier than the first approach.
The key thing that i'm holding on to is the principle that we shouldn't trust anything that comes form the client; we should expect it to lie, cheat and malverse it's state and orders every time, that's why I'm mostly against sending state to the server. But, as always, I'll go with the majority vote, if for whatever reason implementing orders turns out to be unfeasible.
Report message to a moderator
|
|
|
|
|
Orders
By: Aeglos on Wed, 06 July 2011 23:03
|
|
|
Re: Orders
By: Daniel on Thu, 07 July 2011 04:57
|
|
|
Re: Orders
By: Aeglos on Thu, 07 July 2011 05:18
|
|
|
Re: Orders
|
|
|
Re: Orders
By: Aeglos on Thu, 07 July 2011 06:31
|
|
|
Re: Orders
|
|
|
Re: Orders
By: Aeglos on Thu, 07 July 2011 07:02
|
|
|
Re: Orders
|
|
|
Re: Orders
By: Aeglos on Thu, 07 July 2011 07:55
|
|
|
Re: Orders
|
|
|
Re: Orders
By: Aeglos on Thu, 07 July 2011 08:17
|
|
|
Re: Orders
|
|
|
Re: Orders
By: Daniel on Thu, 07 July 2011 10:14
|
|
|
Re: Orders
|
|
|
Re: Orders
By: Aeglos on Thu, 07 July 2011 14:39
|
|
|
Re: Orders
|
|
|
Re: Orders
|
|
|
Re: Orders
|
|
|
Re: Orders
|
|
|
Re: Orders
By: Aeglos on Wed, 20 July 2011 18:43
|
|
|
Re: Orders
By: Musmuris on Fri, 19 August 2011 16:06
|
|
|
Re: Orders
By: Daniel on Fri, 19 August 2011 17:54
|
|
|
Re: Orders
By: Musmuris on Sat, 20 August 2011 04:34
|
|
|
Re: Orders
By: Aeglos on Sat, 20 August 2011 02:53
|
|
|
Re: Orders
By: Daniel on Wed, 22 February 2012 03:12
|
|
|
Re: Orders
By: Daniel on Sat, 25 February 2012 00:04
|
|
|
Re: Orders
By: Daniel on Sat, 25 February 2012 02:38
|
|
|
Re: Orders
By: Daniel on Sat, 25 February 2012 05:46
|
|
|
Re: Orders
By: Aeglos on Sun, 26 February 2012 20:10
|
|
|
Re: Orders
By: Aeglos on Tue, 28 February 2012 03:36
|
|
|
Re: Orders
By: Daniel on Fri, 27 April 2012 17:21
|
|
|
Re: Orders
By: Aeglos on Fri, 27 April 2012 18:42
|
|
|
Re: Orders
By: Aeglos on Sat, 28 April 2012 21:58
|
|
|
Re: Orders
By: Daniel on Sun, 29 April 2012 03:59
|
|
|
Re: Orders
By: Aeglos on Sun, 29 April 2012 13:11
|
|
|
Re: Orders
By: Daniel on Fri, 11 May 2012 21:41
|
|
|
Re: Orders
By: Daniel on Sat, 12 May 2012 01:09
|
Goto Forum:
Current Time: Sat May 11 15:42:16 EDT 2024
|