Skip to content

Instantly share code, notes, and snippets.

@thealmikey
Last active January 21, 2020 02:51
Show Gist options
  • Save thealmikey/51465272c3cfb4a66d492d20154b33e0 to your computer and use it in GitHub Desktop.
Save thealmikey/51465272c3cfb4a66d492d20154b33e0 to your computer and use it in GitHub Desktop.
fun main() {
var regularMike = Human("Mike Regular")
regularMike.emotionalState.transition(HumanAction.Entertain)
println(regularMike.emotionalState.state)
// Hapiness message
// HumanState$Happy@5b37e0d2
regularMike.emotionalState.transition(HumanAction.GiveLecture)
println(regularMike.emotionalState.state)
//BoredNess message
// HumanState$Bored@28c97a5
regularMike.emotionalState.transition(HumanAction.Annoy)
println(regularMike.emotionalState.state)
//Bad vibes message
//HumanState$Sad@2328c243
regularMike.emotionalState.transition(HumanAction.GiveTherapy)
println(regularMike.emotionalState.state)
//Goodwork report
// HumanState$Bored@28c97a5
regularMike.emotionalState.transition(HumanAction.GiveTherapy)
println(regularMike.emotionalState.state)
//Goodwork report
// HumanState$Happy@736e9adb
regularMike.emotionalState.transition(HumanAction.GiveTherapy)
println(regularMike.emotionalState.state)
// Goodwork report
// HumanState$PureBliss@23ab930d
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment