PHP Class Slackwolf\Game\Role

Afficher le fichier Open project: chrisgillis/slackwolf Class Usage Examples

Méthodes publiques

Méthode Description
appearsAsWerewolf ( ) : boolean
getDescription ( ) : string Returns the description of the Role.
getName ( ) : string Returns the name of the current Role.
getSpecialRoles ( )
isRole ( $roleName ) : boolean Returns a bool on whether the Role name matches.
isWerewolfTeam ( ) : boolean

Method Details

appearsAsWerewolf() public méthode

public appearsAsWerewolf ( ) : boolean
Résultat boolean

getDescription() public méthode

Returns the description of the Role.
public getDescription ( ) : string
Résultat string

getName() public méthode

Returns the name of the current Role.
public getName ( ) : string
Résultat string

getSpecialRoles() public static méthode

public static getSpecialRoles ( )

isRole() public méthode

Returns a bool on whether the Role name matches.
public isRole ( $roleName ) : boolean
$roleName The Role name to compare against.
Résultat boolean

isWerewolfTeam() public méthode

public isWerewolfTeam ( ) : boolean
Résultat boolean