Tanks Multiplayer  1.5
Public Member Functions | Public Attributes | List of all members
PowerupHealth

Custom powerup implementation for adding player health points. More...

Inheritance diagram for PowerupHealth:
Collectible

Public Member Functions

override bool Apply (Player p)
 Overrides the default behavior with a custom implementation. Check for the current health and adds additional health. More...
 
- Public Member Functions inherited from Collectible
virtual void OnTriggerEnter (Collider col)
 Server only: check for players colliding with this item. Possible collision are defined in the Physics Matrix. More...
 
virtual void OnPickup ()
 Virtual implementation called when this Collectible gets picked up. This is called for CollectionType = Pickup items only. More...
 
virtual void OnDrop ()
 Virtual implementation called when this Collectible gets dropped on player death. This is called for CollectionType = Pickup items only. More...
 
virtual void OnReturn ()
 Virtual implementation called when this Collectible gets returned. This is called for CollectionType = Pickup items only. More...
 

Public Attributes

int amount = 5
 Amount of health points to add per consumption. More...
 
- Public Attributes inherited from Collectible
AudioClip useClip
 Clip to play when this Collectible is consumed by a player. More...
 
ObjectSpawner spawner
 Reference to the local object (script) that spawned this Collectible. More...
 
int carrierId = -1
 Persistent network (PhotonView) ID of the Player that picked up this Collectible. More...
 

Detailed Description

Custom powerup implementation for adding player health points.

Member Function Documentation

override bool Apply ( Player  p)
virtual

Overrides the default behavior with a custom implementation. Check for the current health and adds additional health.

Reimplemented from Collectible.

Member Data Documentation

int amount = 5

Amount of health points to add per consumption.


The documentation for this class was generated from the following file: