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

Item event arguments. More...

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

Public Member Functions

 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

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 arguments.

Constructor & Destructor Documentation

◆ ItemEventArgs() [1/2]

PlatformerPro.ItemEventArgs.ItemEventArgs ( string  type,
Character  character 
)

Initializes a new instance of the PlatformerPro.ItemEventArgs class assuming the amount = 1.

Parameters
typeType.
amountThe number of items collected.
characterCharacter.
totalAmountTotal Number of items of this type the player has.

◆ ItemEventArgs() [2/2]

PlatformerPro.ItemEventArgs.ItemEventArgs ( string  type,
int  amount,
Character  character 
)

Initializes a new instance of the PlatformerPro.ItemEventArgs class.

Parameters
typeType.
amountThe number of items collected.
characterCharacter.
totalAmountTotal Number of items of this type the player has.

Property Documentation

◆ Amount

virtual int PlatformerPro.ItemEventArgs.Amount
getprotected set

Gets the number of items collected.

◆ IntValue

virtual int PlatformerPro.ItemEventArgs.IntValue
getprotected set

Gets or sets the int value.

The previous scene.

◆ Type

string PlatformerPro.ItemEventArgs.Type
getprotected set

Gets the item type.


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