PHP Класс Slackwolf\Game\Role

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

appearsAsWerewolf() публичный Метод

public appearsAsWerewolf ( ) : boolean
Результат boolean

getDescription() публичный Метод

Returns the description of the Role.
public getDescription ( ) : string
Результат string

getName() публичный Метод

Returns the name of the current Role.
public getName ( ) : string
Результат string

getSpecialRoles() публичный статический Метод

public static getSpecialRoles ( )

isRole() публичный Метод

Returns a bool on whether the Role name matches.
public isRole ( $roleName ) : boolean
$roleName The Role name to compare against.
Результат boolean

isWerewolfTeam() публичный Метод

public isWerewolfTeam ( ) : boolean
Результат boolean