Commit 0f9873a5 authored by Romain DELEAU's avatar Romain DELEAU

add ressource and supplementary-role class - update role step task class

parent b0d43ca4
import { Ressource } from './ressource';
describe('Ressource', () => {
it('should create an instance', () => {
expect(new Ressource()).toBeTruthy();
});
});
export class Ressource {
name: string = '';
number: string = '';
type: string = '';
}
import { Step } from "../step/step";
import { Task } from "../task/task";
import { Ressource } from "../ressource/ressource";
import { SupplementaryRole } from "../supplementary-role/supplementary-role";
export class Role {
intitule: string = '';
questName: string = '';
objective: string = '';
description: string = '';
educationnalObjectives: string[] = [''];
rewards: string = '';
stuff: string = '';
ressources: Ressource[] = [new Ressource()];
supplementaryRoles: SupplementaryRole[] = [];
comments: Comment[] = [];
tasks: Task[][] = [
[new Task('normal')]
......
export class Step {
description: string = '';
durarion: number = 0;
durarion: number = 1;
durationUnit: string = 'UT';
comments: Comment[] = [];
}
import { SupplementaryRole } from './supplementary-role';
describe('SupplementaryRole', () => {
it('should create an instance', () => {
expect(new SupplementaryRole()).toBeTruthy();
});
});
export class SupplementaryRole {
name: string = '';
objectives: string = '';
skills: string = '';
rules: string = '';
}
import { Character } from "../character/character";
import { Comment } from "../comment/comment";
import { Repeat } from "../repeat/repeat";
import { SupplementaryRole } from "../supplementary-role/supplementary-role";
import { Symbol } from "../symbol/symbol";
export class Task {
type: string; //could be : normal / annexe / event
type: string; //peut être : normal / annexe / event / optionnal / final / repeater
identifier: string = '';
symbol: Symbol = new Symbol();
objective: string = '';
......@@ -13,9 +14,12 @@ export class Task {
duration: number = 1;
durationUnite: string = 'UT';
comments: Comment[] = [];
character: Character = new Character();
character: Character | null = null;
repeat: Repeat = new Repeat();
supplementaryRole: SupplementaryRole | null = null;
interrupt: string = '';
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