Platformer Pro  2.3.2
A platform game kit for Unity.
PlatformerPro.ItemDamagedEventArgs Class Reference

Item event args with additioal args for a damaged event.s More...

Inheritance diagram for PlatformerPro.ItemDamagedEventArgs:
PlatformerPro.ItemEventArgs PlatformerPro.CharacterEventArgs

Public Member Functions

 ItemDamagedEventArgs (string type, Character character, bool isDestroyed)
 Initializes a new instance of the T:PlatformerPro.ItemDamagedEventArgs class. More...
 
- Public Member Functions inherited from PlatformerPro.ItemEventArgs
 ItemEventArgs (string type, Character character)
 Initializes a new instance of the PlatformerPro.ItemEventArgs class assuming the amount = 1. More...
 
 ItemEventArgs (string type, int amount, Character character)
 Initializes a new instance of the PlatformerPro.ItemEventArgs class. More...
 
- Public Member Functions inherited from PlatformerPro.CharacterEventArgs
 CharacterEventArgs ()
 Initializes a new instance of the PlatformerPro.CharacterEventArgs class. More...
 
 CharacterEventArgs (Character character)
 Initializes a new instance of the PlatformerPro.CharacterEventArgs class. More...
 
 CharacterEventArgs (Character character, int playerId)
 Initializes a new instance of the PlatformerPro.CharacterEventArgs class. More...
 
void Update (Character character)
 Updates the event args with the given character More...
 

Properties

bool IsDestroyed [get, protected set]
 Gets or sets a value indicating whether this T:PlatformerPro.ItemDamagedEventArgs is destroyed. More...
 
- Properties inherited from PlatformerPro.ItemEventArgs
string Type [get, protected set]
 Gets the item type. More...
 
virtual int Amount [get, protected set]
 Gets the number of items collected. More...
 
virtual int IntValue [get, protected set]
 Gets or sets the int value. More...
 
- Properties inherited from PlatformerPro.CharacterEventArgs
Character Character [get, protected set]
 Gets or sets the character. More...
 
int PlayerId [get, protected set]
 What player number is this? More...
 

Detailed Description

Item event args with additioal args for a damaged event.s

Constructor & Destructor Documentation

◆ ItemDamagedEventArgs()

PlatformerPro.ItemDamagedEventArgs.ItemDamagedEventArgs ( string  type,
Character  character,
bool  isDestroyed 
)

Initializes a new instance of the T:PlatformerPro.ItemDamagedEventArgs class.

Parameters
typeType.
characterCharacter.
isDestroyedIf set to true is destroyed.

Property Documentation

◆ IsDestroyed

bool PlatformerPro.ItemDamagedEventArgs.IsDestroyed
getprotected set

Gets or sets a value indicating whether this T:PlatformerPro.ItemDamagedEventArgs is destroyed.

true if is destroyed; otherwise, false.


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