Skip to content

Implementation Role Feature 14

Max Haertwig edited this page Nov 15, 2020 · 6 revisions

Title

An object and its roles share identity

Description

In the object-oriented world this entails that an object and its roles are the same.

Implementation

The compound role object will always have the same identity as its contained player object and each and every role object.

Additional hints

For more test cases see EqualityRoleTest.scala.

Clone this wiki locally