annotation
This commit is contained in:
@@ -9,7 +9,7 @@ import helmet from 'helmet';
|
||||
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 {
|
||||
name = 'webServer';
|
||||
|
||||
@@ -78,22 +78,10 @@ class Game {
|
||||
name = null;
|
||||
|
||||
/**
|
||||
* Game formal description
|
||||
* @type {GameDefinition}
|
||||
* Game scenario
|
||||
* @type { Scenario }
|
||||
*/
|
||||
definition = {
|
||||
levels:[
|
||||
{
|
||||
name: 'Level 1',
|
||||
environment: null,
|
||||
objects:[
|
||||
{
|
||||
id: 15
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
scenario = null;
|
||||
}
|
||||
|
||||
export { GamesManager }
|
||||
@@ -151,17 +151,22 @@ class GameAction {
|
||||
* Result associated to game action
|
||||
*/
|
||||
class GameActionResult{
|
||||
pointsRuleDefinition = null;
|
||||
|
||||
/**
|
||||
* Applied rules to the specific result
|
||||
* @type Rule[]
|
||||
*/
|
||||
rules = []
|
||||
|
||||
/**
|
||||
* Scenario name
|
||||
* @type {string}
|
||||
* @type string
|
||||
*/
|
||||
name = null;
|
||||
|
||||
/**
|
||||
* Scenario name
|
||||
* @type {string}
|
||||
* @type string
|
||||
*/
|
||||
description = null;
|
||||
}
|
||||
@@ -172,13 +177,13 @@ class GameActionResult{
|
||||
class InventoryItem {
|
||||
/**
|
||||
* Scenario name
|
||||
* @type {string}
|
||||
* @type string
|
||||
*/
|
||||
name = null;
|
||||
|
||||
/**
|
||||
* Scenario name
|
||||
* @type {string}
|
||||
* @type string
|
||||
*/
|
||||
description = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user