annotation
This commit is contained in:
@@ -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';
|
||||||
|
|||||||
@@ -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 }
|
||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user