annotation

This commit is contained in:
2024-11-27 18:10:09 +02:00
parent ad4eef17f5
commit 824249ed75
3 changed files with 14 additions and 21 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import helmet from 'helmet';
import { v4 as uuidv4 } from 'uuid'; import { v4 as uuidv4 } from 'uuid';
/** /**
* The Web Server class, manages all request from the web pllatform, manages the APIs * The Web Server class, manages all request from the web platform, manages the APIs
*/ */
class WebServer { class WebServer {
name = 'webServer'; name = 'webServer';
+3 -15
View File
@@ -78,22 +78,10 @@ class Game {
name = null; name = null;
/** /**
* Game formal description * Game scenario
* @type {GameDefinition} * @type { Scenario }
*/ */
definition = { scenario = null;
levels:[
{
name: 'Level 1',
environment: null,
objects:[
{
id: 15
}
]
}
]
};
} }
export { GamesManager } export { GamesManager }
+10 -5
View File
@@ -151,17 +151,22 @@ class GameAction {
* Result associated to game action * Result associated to game action
*/ */
class GameActionResult{ class GameActionResult{
pointsRuleDefinition = null;
/**
* Applied rules to the specific result
* @type Rule[]
*/
rules = []
/** /**
* Scenario name * Scenario name
* @type {string} * @type string
*/ */
name = null; name = null;
/** /**
* Scenario name * Scenario name
* @type {string} * @type string
*/ */
description = null; description = null;
} }
@@ -172,13 +177,13 @@ class GameActionResult{
class InventoryItem { class InventoryItem {
/** /**
* Scenario name * Scenario name
* @type {string} * @type string
*/ */
name = null; name = null;
/** /**
* Scenario name * Scenario name
* @type {string} * @type string
*/ */
description = null; description = null;
} }