\ManiaControl\Callbacks\Structures\ShootManiaOnHitStructure

Structure Class for the OnHit Structure Callback

Summary

Methods
Properties
Constants
__construct()
getTime()
getWeapon()
getShooterPosition()
getVictimPosition()
getShooter()
getVictim()
getDistance()
getPlainJsonObject()
getUsageInformation()
toJson()
getDamage()
getShooterPoints()
No public properties found
No constants found
No protected methods found
$maniaControl
N/A
No private methods found
$time
$weapon
$shooterPosition
$victimPosition
$shooter
$victim
$distance
$plainJsonObject
$damage
$shooterPoints
N/A

Properties

$weapon

$weapon : 

Type

$shooterPosition

$shooterPosition : 

Type

$victimPosition

$victimPosition : 

Type

$shooter

$shooter : 

Type

$victim

$victim : 

Type

$distance

$distance : 

Type

$plainJsonObject

$plainJsonObject : 

Type

$damage

$damage : 

Type

$shooterPoints

$shooterPoints : 

Type

Methods

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl, array  $data) 

OnHitStructure constructor.

Parameters

\ManiaControl\ManiaControl $maniaControl
array $data

getTime()

getTime() : integer

< Server time when the event occured

Returns

integer

getWeapon()

getWeapon() : integer

< Id of the weapon [1-Laser, 2-Rocket, 3-Nucleus, 5-Arrow]

Returns

integer

getDistance()

getDistance() : float

Distance Between Shooter and Victim at the time of the Event

Returns

float

getPlainJsonObject()

getPlainJsonObject() 

Gets the Plain Json

getUsageInformation()

getUsageInformation() 

Gets Information about the Class, and a List of the Public Method

toJson()

toJson() 

getDamage()

getDamage() : integer

< Amount of Damage done by the hit (only on onHit)

Returns

integer

getShooterPoints()

getShooterPoints() : integer

Amount of points scored by the shooter

Returns

integer