PETNotificationFunctionsTrait
- trait SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETNotificationFunctionsTrait
- Trait holding functions overriding the framework's notifications functions
Methods
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETNotificationFunctionsTrait::notifyAllPlayers($notificationName, $notificationLog, $notificationArgs)
- Override the framework's notifyAllPlayers function and adding information to each notification
- Source
modules/php/Traits/Utility/PETNotificationFunctionsTrait.php#34
- Parameters
$notificationName
$notificationLog
$notificationArgs
- Returns
void
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETNotificationFunctionsTrait::notifyPlayer($playerId, $notificationName, $notificationLog, $notificationArgs)
- Override the framework's notifyPlayer function and adding information to each notification
- Source
modules/php/Traits/Utility/PETNotificationFunctionsTrait.php#50
- Parameters
$playerId
$notificationName
$notificationLog
$notificationArgs
- Returns
void
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETNotificationFunctionsTrait::notifyPlayerThenAllPlayers($playerId, $notificationName, $notificationLogSelf, $notificationArgSelf, $notificationLogAll, $notificationArgsAll)
- Wrapper function to call notifyPlayer function then notifyAllPlayers with the relevant arguments
- Source
modules/php/Traits/Utility/PETNotificationFunctionsTrait.php#68
- Parameters
$playerId
$notificationName
$notificationLogSelf
$notificationArgSelf
$notificationLogAll
$notificationArgsAll
- Returns
void
- private SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETNotificationFunctionsTrait::updateAllPlayersArgsArray($notificationArgs)
- Update the notification args array with information that should be sent with all notifications (decks and discards,the new hand size of the active player, the power tracks ranks)
- Source
modules/php/Traits/Utility/PETNotificationFunctionsTrait.php#86
- Parameters
$notificationArgs
- Returns
array
- private SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETNotificationFunctionsTrait::updatePlayerArgArray($notificationArgs)
- Update the notification args array with the active player's id
- Source
modules/php/Traits/Utility/PETNotificationFunctionsTrait.php#108
- Parameters
$notificationArgs
- Returns
array