game: add: docstring

This commit is contained in:
2024-01-22 13:21:51 +01:00
parent ab73826c11
commit 6fd11d0028
10 changed files with 231 additions and 12 deletions

View File

@ -6,7 +6,6 @@ import { Segment } from "./Segment.js";
class MyPlayer extends Player
{
/**
*
* @param {Client} client
* @param {Game} game
* @param {Segment} rail
@ -23,9 +22,7 @@ class MyPlayer extends Player
}
/**
*
* @param {[string]} keys_pressed
* @returns
*/
update_paddle(keys_pressed)
{
@ -47,7 +44,6 @@ class MyPlayer extends Player
}
/**
*
* @param {Number} new_position
* @param {Number} time
*/

View File

@ -5,7 +5,6 @@ import { Segment } from "./Segment.js";
class Player
{
/**
*
* @param {Number} id
* @param {Game} game
* @param {Segment} rail