Showing movement in multiplayer

Discussion of all aspects of the game engine, including development of new and existing features.

Moderators: Forum Moderators, Developers

Post Reply
vic

Post by vic » January 5th, 2004, 11:23 pm

What would you have me write? Like do you need me to code the option into the GUI? Or do you need me to just write the clause to insert the move into the undo/redo stack?

Dave
Founding Developer
Posts: 7066
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Post by Dave » January 6th, 2004, 1:15 am

vic wrote:What would you have me write? Like do you need me to code the option into the GUI? Or do you need me to just write the clause to insert the move into the undo/redo stack?
Uhh...I meant for you to write everything that will make the feature work :)

Note that you will have to add a way of undoing moves across the network.

David
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming

vic

Post by vic » January 6th, 2004, 4:39 am

Could you give me a little more info on which files/methods I'd need to be looking at? More specifically the ones for the multiplayer menus, and the ones for undo/redo, as well as where undo/redo gets stacked. I had to dig for a few hours just to find where to allow moves across the network. If I have to write the GUI, and undo/redo addons, it'd be nice if I didn't have to dig to find where. Thanks.

Dave
Founding Developer
Posts: 7066
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Post by Dave » January 7th, 2004, 6:24 pm

vic wrote:Could you give me a little more info on which files/methods I'd need to be looking at? More specifically the ones for the multiplayer menus, and the ones for undo/redo, as well as where undo/redo gets stacked. I had to dig for a few hours just to find where to allow moves across the network. If I have to write the GUI, and undo/redo addons, it'd be nice if I didn't have to dig to find where. Thanks.
Undo/redo stacks are found in playturn.cpp/.hpp

Code: Select all

class turn_info
{
....
	undo_list undo_stack_;
	undo_list redo_stack_;
Configuration options for multiplayer are found in multiplayer.cpp/.hpp - inside play_multiplayer()

Hope that helps!

David
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming

jzaun
Posts: 45
Joined: October 24th, 2003, 7:06 pm
Location: Waikiki, HI
Contact:

Post by jzaun » January 7th, 2004, 7:47 pm

Dave wrote:
vic wrote:Could you give me a little more info on which files/methods I'd need to be looking at? More specifically the ones for the multiplayer menus, and the ones for undo/redo, as well as where undo/redo gets stacked. I had to dig for a few hours just to find where to allow moves across the network. If I have to write the GUI, and undo/redo addons, it'd be nice if I didn't have to dig to find where. Thanks.
Configuration options for multiplayer are found in multiplayer.cpp/.hpp - inside play_multiplayer()

Hope that helps!

David
This code is currently in a state of flux. multiplayer_connect.cpp contains/will contain much of the network code.

Justin
-- Justin Zaun (jzaun)

Guest

Post by Guest » January 8th, 2004, 7:27 pm

I'll see what I can do to the current setup, it should be easy to migrate the changes.

vic

Post by vic » January 8th, 2004, 7:28 pm

Sorry that was me ^^

Post Reply