Skip to content

Implementation Role Feature 9

Max Leuthäuser edited this page Nov 18, 2021 · 6 revisions

Title

Roles can be transferred between objects

Description

It is useful to drop a role from one player and transfer it to another one. The state should be kept.

Implementation

val someCoreA = new CoreA()
val someCoreB = new CoreB()
val someRole = new RoleA()

someCoreA play someRole
someCoreA transfer someRole to someCoreB

(E.g., CompartmentRoleFeaturesTest.scala)

Additional hints

None.

Clone this wiki locally