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
9da792f0
Commit
9da792f0
authored
May 05, 2023
by
Romain DELEAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add rewards, role-occurrence + update tasks / mission-context / role / scenario
parent
51b1f479
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
90 additions
and
5 deletions
+90
-5
mission-context.ts
src/app/class/mission-context/mission-context.ts
+2
-1
character-reward.spec.ts
...p/class/rewards/character-reward/character-reward.spec.ts
+7
-0
character-reward.ts
src/app/class/rewards/character-reward/character-reward.ts
+6
-0
objective-reward.spec.ts
...p/class/rewards/objective-reward/objective-reward.spec.ts
+7
-0
objective-reward.ts
src/app/class/rewards/objective-reward/objective-reward.ts
+5
-0
objects-reward.spec.ts
src/app/class/rewards/objects-reward/objects-reward.spec.ts
+7
-0
objects-reward.ts
src/app/class/rewards/objects-reward/objects-reward.ts
+6
-0
quest-reward.spec.ts
src/app/class/rewards/quest-reward/quest-reward.spec.ts
+7
-0
quest-reward.ts
src/app/class/rewards/quest-reward/quest-reward.ts
+6
-0
reward.ts
src/app/class/rewards/reward.ts
+3
-0
skill-reward.spec.ts
src/app/class/rewards/skill-reward/skill-reward.spec.ts
+7
-0
skill-reward.ts
src/app/class/rewards/skill-reward/skill-reward.ts
+6
-0
role-occurrence.spec.ts
src/app/class/role-occurrence/role-occurrence.spec.ts
+7
-0
role-occurrence.ts
src/app/class/role-occurrence/role-occurrence.ts
+5
-0
role.ts
src/app/class/role/role.ts
+4
-1
scenario.ts
src/app/class/scenario/scenario.ts
+3
-1
task.ts
src/app/class/task/task.ts
+2
-2
No files found.
src/app/class/mission-context/mission-context.ts
View file @
9da792f0
...
...
@@ -2,6 +2,7 @@ export class MissionContext {
duration
:
string
=
''
;
intrigue
:
string
=
''
;
other
:
string
=
''
;
communication
=
''
;
various
:
string
=
''
;
comments
:
Comment
[]
=
[];
}
src/app/class/rewards/character-reward/character-reward.spec.ts
0 → 100644
View file @
9da792f0
import
{
CharacterReward
}
from
'./character-reward'
;
describe
(
'CharacterReward'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
CharacterReward
()).
toBeTruthy
();
});
});
src/app/class/rewards/character-reward/character-reward.ts
0 → 100644
View file @
9da792f0
import
{
Character
}
from
"../../character/character"
;
import
{
Reward
}
from
"../reward"
;
export
class
CharacterReward
implements
Reward
{
character
!
:
Character
;
}
src/app/class/rewards/objective-reward/objective-reward.spec.ts
0 → 100644
View file @
9da792f0
import
{
ObjectiveReward
}
from
'./objective-reward'
;
describe
(
'ObjectiveReward'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
ObjectiveReward
()).
toBeTruthy
();
});
});
src/app/class/rewards/objective-reward/objective-reward.ts
0 → 100644
View file @
9da792f0
import
{
Reward
}
from
"../reward"
;
export
class
ObjectiveReward
implements
Reward
{
name
:
string
=
''
;
}
src/app/class/rewards/objects-reward/objects-reward.spec.ts
0 → 100644
View file @
9da792f0
import
{
ObjectsReward
}
from
'./objects-reward'
;
describe
(
'ObjectsReward'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
ObjectsReward
()).
toBeTruthy
();
});
});
src/app/class/rewards/objects-reward/objects-reward.ts
0 → 100644
View file @
9da792f0
import
{
Ressource
}
from
"../../ressource/ressource"
;
import
{
Reward
}
from
"../reward"
;
export
class
ObjectsReward
implements
Reward
{
objects
:
Ressource
[]
=
[
new
Ressource
()];
}
src/app/class/rewards/quest-reward/quest-reward.spec.ts
0 → 100644
View file @
9da792f0
import
{
QuestReward
}
from
'./quest-reward'
;
describe
(
'QuestReward'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
QuestReward
()).
toBeTruthy
();
});
});
src/app/class/rewards/quest-reward/quest-reward.ts
0 → 100644
View file @
9da792f0
import
{
Role
}
from
"../../role/role"
;
import
{
Reward
}
from
"../reward"
;
export
class
QuestReward
implements
Reward
{
quest
!
:
Role
;
}
src/app/class/rewards/reward.ts
0 → 100644
View file @
9da792f0
export
interface
Reward
{
}
src/app/class/rewards/skill-reward/skill-reward.spec.ts
0 → 100644
View file @
9da792f0
import
{
SkillReward
}
from
'./skill-reward'
;
describe
(
'SkillReward'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
SkillReward
()).
toBeTruthy
();
});
});
src/app/class/rewards/skill-reward/skill-reward.ts
0 → 100644
View file @
9da792f0
import
{
Ressource
}
from
"../../ressource/ressource"
;
import
{
Reward
}
from
"../reward"
;
export
class
SkillReward
implements
Reward
{
skill
!
:
Ressource
;
}
src/app/class/role-occurrence/role-occurrence.spec.ts
0 → 100644
View file @
9da792f0
import
{
RoleOccurrence
}
from
'./role-occurrence'
;
describe
(
'RoleOccurrence'
,
()
=>
{
it
(
'should create an instance'
,
()
=>
{
expect
(
new
RoleOccurrence
()).
toBeTruthy
();
});
});
src/app/class/role-occurrence/role-occurrence.ts
0 → 100644
View file @
9da792f0
export
class
RoleOccurrence
{
iteration
:
number
=
1
;
min
!
:
number
;
max
!
:
number
;
}
src/app/class/role/role.ts
View file @
9da792f0
...
...
@@ -2,6 +2,8 @@ import { Step } from "../step/step";
import
{
Task
}
from
"../task/task"
;
import
{
Ressource
}
from
"../ressource/ressource"
;
import
{
SupplementaryRole
}
from
"../supplementary-role/supplementary-role"
;
import
{
Reward
}
from
"../rewards/reward"
;
import
{
RoleOccurrence
}
from
"../role-occurrence/role-occurrence"
;
export
class
Role
{
...
...
@@ -9,11 +11,12 @@ export class Role {
questName
:
string
=
''
;
description
:
string
=
''
;
educationnalObjectives
:
string
[]
=
[
''
];
rewards
:
string
=
''
;
rewards
:
Reward
[]
=
[]
;
stuff
:
string
=
''
;
ressources
:
Ressource
[]
=
[];
supplementaryRoles
:
SupplementaryRole
[]
=
[];
comments
:
Comment
[]
=
[];
occurences
:
RoleOccurrence
[]
=
[
new
RoleOccurrence
()]
tasks
:
Task
[][]
=
[
[
new
Task
(
'normal'
)]
]
...
...
src/app/class/scenario/scenario.ts
View file @
9da792f0
...
...
@@ -2,7 +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
"
;
import
{
Ressource
}
from
"../ressource/ressource
"
;
export
class
Scenario
{
...
...
@@ -10,4 +10,6 @@ export class Scenario {
context
:
GameContext
=
new
GameContext
();
missions
:
Mission
[]
=
[
new
Mission
()];
characters
:
Character
[]
=
[];
gameRules
:
string
=
''
;
ressources
:
Ressource
[]
=
[
new
Ressource
()];
}
\ No newline at end of file
src/app/class/task/task.ts
View file @
9da792f0
...
...
@@ -14,10 +14,10 @@ export class Task {
duration
:
number
=
1
;
durationUnite
:
string
=
'UT'
;
comments
:
Comment
[]
=
[];
character
:
Character
|
null
=
null
;
character
!
:
Character
;
repeat
:
Repeat
=
new
Repeat
();
supplementaryRole
:
SupplementaryRole
|
null
=
null
;
supplementaryRole
!
:
SupplementaryRole
;
interrupt
:
string
=
''
;
constructor
(
type
:
string
)
{
...
...
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