Commit ad1a4907 authored by Romain DELEAU's avatar Romain DELEAU

add chronologie to role and scenario + task repeat

parent 34db56a3
export class Comment {
content: string = '';
answers: Comment[] = [];
answers: string[] = [];
}
import { Repeat } from './repeat';
describe('Repeat', () => {
it('should create an instance', () => {
expect(new Repeat()).toBeTruthy();
});
});
export class Repeat {
iteration: number = 0;
while: string = '';
}
import { Step } from "../step/step";
import { Task } from "../task/task";
export class Role {
......@@ -10,5 +11,6 @@ export class Role {
tasks: Task[][] = [
[new Task('normal')]
]
chronologie: Step[] = [];
}
......@@ -2,6 +2,7 @@ import { Character } from "../character/character";
import { GameContext } from "../game-context/game-context";
import { GameEducationnalObjective } from "../game-educationnal-objective/game-educationnal-objective";
import { Mission } from "../mission/mission";
import { Step } from "../step/step";
export class Scenario {
......@@ -9,5 +10,5 @@ export class Scenario {
context: GameContext = new GameContext();
missions: Mission[] = [new Mission()];
characters: Character[] = [];
chronologie: Step[] = [new Step()];
}
\ No newline at end of file
import { Step } from './step';
describe('Step', () => {
it('should create an instance', () => {
expect(new Step()).toBeTruthy();
});
});
export class Step {
description: string = '';
durarion: number = 0;
durationUnit: string = 'UT';
comments: Comment[] = [];
}
import { Character } from "../character/character";
import { Comment } from "../comment/comment";
import { Repeat } from "../repeat/repeat";
import { Symbol } from "../symbol/symbol";
export class Task {
......@@ -13,6 +14,7 @@ export class Task {
durationUnite: string = 'UT';
comments: Comment[] = [];
character: Character = new Character();
repeat: Repeat = new Repeat();
constructor(type: string) {
this.type = type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment