Skip to content

Conversation

naderzare
Copy link
Member

No description provided.

Copy link
Contributor

@wduminy wduminy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sharing this information about multi-commands

* Dash, Turn
* Turn, Dash

Multi Command idea is implemented in server v.18 to allow players to send more than one main command per cycle.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider The multi command idea ...

* Turn, Dash

Multi Command idea is implemented in server v.18 to allow players to send more than one main command per cycle.
The server v18 can support the belowing combinations:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

belowing => following

So, the server stores Dash and Turn commands' parameters in *M_main_commands_done*,
then will apply them on the player in applying step.

Because of the last two reasons and the structure of the server,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This paragraph seems to be a duplicate

--------------------------------------------------
Dash Turn Model
--------------------------------------------------
When a player send dash and turn commands respectively, and Turn/Dash pair is exists in *M_possible_commands_pairs*,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

player sends

--------------------------------------------------
Kick Dash Model
--------------------------------------------------
When a player send kick and dash commands respectively, and Kick/Turn pair is exists in *M_possible_commands_pairs*,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

player sends

--------------------------------------------------
Kick Turn Model
--------------------------------------------------
When a player send kick and turn commands respectively, and Kick/Dash pair is exists in *M_possible_commands_pairs*,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

player sends

first, the server processes the kick command to updates ball's accel based on player's information (distance to ball, the difference angle between ball-player and player's body),
then, it process the turn command to calculate player's body angle based on player's velocity and finally updates player's velocity, and player's possition.

In :numref:`multicommand` you can see some example regarding multicommands and how they effect on player and ball.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants