Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RLG Maker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Romain DELEAU
RLG Maker
Commits
ad1a4907
Commit
ad1a4907
authored
Mar 08, 2023
by
Romain DELEAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add chronologie to role and scenario + task repeat
parent
34db56a3
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
34 additions
and
2 deletions
+34
-2
comment.ts
src/app/class/comment/comment.ts
+1
-1
repeat.spec.ts
src/app/class/repeat/repeat.spec.ts
+7
-0
repeat.ts
src/app/class/repeat/repeat.ts
+6
-0
role.ts
src/app/class/role/role.ts
+2
-0
scenario.ts
src/app/class/scenario/scenario.ts
+2
-1
step.spec.ts
src/app/class/step/step.spec.ts
+7
-0
step.ts
src/app/class/step/step.ts
+7
-0
task.ts
src/app/class/task/task.ts
+2
-0
No files found.
src/app/class/comment/comment.ts
View file @
ad1a4907
export
class
Comment
{
content
:
string
=
''
;
answers
:
Comment
[]
=
[];
answers
:
string
[]
=
[];
}
src/app/class/repeat/repeat.spec.ts
0 → 100644
View file @
ad1a4907
import
{
Repeat
}
from
'./repeat'
;
describe
(
'Repeat'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
Repeat
()).
toBeTruthy
();
});
});
src/app/class/repeat/repeat.ts
0 → 100644
View file @
ad1a4907
export
class
Repeat
{
iteration
:
number
=
0
;
while
:
string
=
''
;
}
src/app/class/role/role.ts
View file @
ad1a4907
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
[]
=
[];
}
src/app/class/scenario/scenario.ts
View file @
ad1a4907
...
...
@@ -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
src/app/class/step/step.spec.ts
0 → 100644
View file @
ad1a4907
import
{
Step
}
from
'./step'
;
describe
(
'Step'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
Step
()).
toBeTruthy
();
});
});
src/app/class/step/step.ts
0 → 100644
View file @
ad1a4907
export
class
Step
{
description
:
string
=
''
;
durarion
:
number
=
0
;
durationUnit
:
string
=
'UT'
;
comments
:
Comment
[]
=
[];
}
src/app/class/task/task.ts
View file @
ad1a4907
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment