annotation
This commit is contained in:
@@ -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