Romain Bignon a écrit
> Why don't you call Replay::StoreAction() in Network::SendAction() ? I know 

When the server is local, I bet those actions wouldn't be seen.

> this makes a dependancie to Replay in network.cpp, but each time there is :
>      Replay::GetInstance()->StoreAction(&a);
>      Network::GetInstance()->SendAction(&a);

In fact, the most troublesome is for explosion and some other weapons.
They are probably unusable as such because, again with a local game,
this code path won't be used.

> You could too call Replay::StoreAction() in ActionHanlder::ExecActions.

I thought of doing that in NewAction.

But then only things that are performed through actions would be
recorded, so only a part of initialization is missing.

The things that need actions to be sent across the network to clients
must be stored too. For instance, game mode sending or other things are
"immediate" for a local game.

I'm going the Action parts of my newest code, as they are useful even
without replay.

Best regards,
Kurosu

_______________________________________________
Wormux-dev mailing list
Wormux-dev@gna.org
https://mail.gna.org/listinfo/wormux-dev

Répondre à