Object Oriented Software Engineering View all facts Glossary Help |
subject > pattern > design pattern > player-role |
player-role | ||||
subject | fact |
player-role | has definition A pattern in found in class diagrams in which one class (the player) has several associated role classes. Instances of the role classes can change over the lifetime of a player | |
has antipatterns merging all the properties and behaviours into the Player class which however, creates an overly complex class - much of the power of object orientation is lost | ||
has context | ||
has forces
| ||
has problem How do you best model players and roles so that a player can change roles or possess multiple roles? | ||
has related patterns Abstraction-Occurrence pattern | ||
has solution
| ||
is a subtopic of 6.4 - The Player-Role Pattern | ||
is an instance of design pattern | ||
design pattern | has name | |
has references one or more references which indicate who developed or inspired a pattern | ||
should be illustrated using a simple diagram | ||
should be written using a narrative writing style | ||
pattern | should be as general as possible | |
should be described in an easy-to-understand form so that people can determine when and how to use it | ||
should contain a solution that has been proven to effectively solve the problem in the indicated context |
Next design pattern: proxy Up: design pattern Previous design pattern: observer