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

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

Inheritance diagram for PowerupShield:
Collectible

Public Member Functions

override bool Apply (Player p)
 Overrides the default behavior with a custom implementation. Check for the current shield and adds additional shield points. 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 = 3
 Amount of shield 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 shield points.

Member Function Documentation

override bool Apply ( Player  p)
virtual

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

Reimplemented from Collectible.

Member Data Documentation

int amount = 3

Amount of shield points to add per consumption.


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