Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Renovate #6

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
8abd454
Add item processing and scenario
Nov 25, 2020
a38823e
Add item processing and scenario
Nov 25, 2020
3cb8ed3
Add item processing and scenario
Nov 25, 2020
5aee37a
Add sample scenario.
Nov 25, 2020
c0aad7c
Add sample scenario.
Nov 25, 2020
010127d
Add sample scenario.
Nov 25, 2020
cc68b5c
Add sample scenario.
Nov 25, 2020
be03eb2
Sample scenario test
Nov 25, 2020
9d3bf8a
Investigation.currentTime()
Nov 25, 2020
3742559
MysteryDeathScenarioTest.kt
Nov 25, 2020
05c6f31
MysteryDeathScenarioTest.kt
Nov 25, 2020
0c189b4
MysteryDeathScenarioTest.kt
Nov 25, 2020
b362c29
MysteryDeathScenarioTest.kt
Nov 25, 2020
55368c7
Closing investigation
Nov 26, 2020
3426a33
Close investigation location
Dec 2, 2020
a14a225
Sceuring evidence.
Dec 2, 2020
1091245
Sceuring evidence.
Dec 2, 2020
b5da565
Test DSL
Dec 2, 2020
0a738b2
Test DSL
Dec 2, 2020
1148aed
Planowanie REST API
Dec 2, 2020
545af6d
Planowanie REST API
Dec 2, 2020
df7cfb8
Planowanie REST API
Dec 2, 2020
2d172da
Add ids as variables
Dec 3, 2020
3d03f17
Add backend directory
Dec 3, 2020
c43d39e
Add gradle modules
Dec 4, 2020
2c6385f
Add gradle modules
Dec 4, 2020
12adec5
InvestigationState
Dec 4, 2020
764e955
CurrentTimeDsl
Dec 5, 2020
ee8b1ef
Add CommandsReactions
Dec 6, 2020
9c5260c
ScenarioDSL part 1
Dec 6, 2020
64ebeaa
ScenarioDSL part 2
Dec 6, 2020
002d5d3
ScenarioDSL part 3
Dec 7, 2020
aa8effe
ScenarioDSL part 4
Dec 7, 2020
3c31e8a
ScenarioDSL part 5
Dec 7, 2020
c0ee65c
ScenarioDSL part 6
Dec 7, 2020
3834a3e
ScenarioDSL part 7
Dec 7, 2020
2979653
ScenarioDSL part 8
Dec 7, 2020
ac59384
ScenarioDSL part 9
Dec 7, 2020
e095899
ScenarioDSL part 10
Dec 7, 2020
f6088ca
ScenarioDSL part 11
Dec 7, 2020
0e40c54
ScenarioDSL part 12
Dec 7, 2020
085a97b
Add React client app
Jan 1, 2021
366940f
Crime web client in TypeScript
Jan 1, 2021
ff935e0
Add CrimeStories WebFlux app
Apr 20, 2021
26205c9
README | Add readme to main directory
Aug 23, 2021
5822997
README | Add readme to main directory
Aug 23, 2021
1e59cca
Add renovate.json
renovate-bot Aug 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Close investigation location
Mateusz Nowak committed Dec 2, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 3426a334323af52fadf1a015f0ebceb0bea2f44c
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@ abstract class Scenario(
val chainReactions: ChainReactions = mapOf(),
val locations: List<Location> = listOf(),
val detectiveStartLocation: Location,
val closeInvestigationLocation: Location,
val history: DomainEvents = listOf(),
val questions: Map<Question, Answer> = emptyMap()
) {
@@ -37,6 +38,9 @@ abstract class Scenario(
if (!locations.contains(detectiveStartLocation)) {
throw IllegalArgumentException("Start location is not scenario location!")
}
if(!locations.contains(closeInvestigationLocation)){
throw IllegalArgumentException("Close Investigation location is not scenario location!")
}
}

abstract fun onStartInvestigation(command: StartInvestigation): CommandResult
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ import pl.zycienakodach.crimestories.domain.capability.detective.CloseInvestigat
import pl.zycienakodach.crimestories.domain.capability.detective.InvestigationStarted
import pl.zycienakodach.crimestories.domain.capability.detective.StartInvestigation
import pl.zycienakodach.crimestories.domain.capability.location.VisitLocation
import pl.zycienakodach.crimestories.domain.capability.location.detectiveLocation
import pl.zycienakodach.crimestories.domain.operations.scenario.Scenario
import pl.zycienakodach.crimestories.domain.operations.scenario.notFoundCharacter
import pl.zycienakodach.crimestories.domain.shared.*
@@ -32,7 +33,12 @@ abstract class Investigation(private val scenario: Scenario, var history: Domain
private fun Scenario.investigate(command: Command, investigationHistory: DomainEvents): ICommandResult =
when (command) {
is StartInvestigation -> this.onStartInvestigation(command)
is CloseInvestigation -> this.onCloseInvestigation(command)
is CloseInvestigation ->
if (detectiveLocation() !== scenario.closeInvestigationLocation.id) {
CommandResult.onlyMessage("You can close investigation only at ${scenario.closeInvestigationLocation.name}")
} else {
this.onCloseInvestigation(command)
}
is CharacterCommand -> this.characters.getOrDefault(command.ask, notFoundCharacter)(
command,
investigationHistory
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ object MysteryDeathScenario : Scenario(
items = listOf(Knife, Clothes), //Czy one są potrzebne!?
locations = listOf(policeStation, harryHouse),
detectiveStartLocation = policeStation,
closeInvestigationLocation = policeStation,
history = listOf(
alice.hasArrived(at = harryHouse),
harry.wasKilled(by = alice),