C# Class HealthPotion

Inheritance: Potion
Mostra file Open project: marouen-lamiri/Second-Soul Class Usage Examples

Public Properties

Property Type Description
description string
healingPortion int
itemName string
methodToCall string
price int

Public Methods

Method Description
HealthPotion ( ) : UnityEngine
consume ( Player, player ) : void
determineAmount ( ) : int
getDescription ( ) : string
getHeight ( ) : int
getImage ( ) : Texture2D
getPrice ( ) : int
getString ( ) : string
getWidth ( ) : int
getX ( ) : int
getY ( ) : int
setPlayer ( ) : void
useItem ( Player, player ) : void

Method Details

HealthPotion() public method

public HealthPotion ( ) : UnityEngine
return UnityEngine

consume() public method

public consume ( Player, player ) : void
player Player,
return void

determineAmount() public method

public determineAmount ( ) : int
return int

getDescription() public method

public getDescription ( ) : string
return string

getHeight() public method

public getHeight ( ) : int
return int

getImage() public method

public getImage ( ) : Texture2D
return UnityEngine.Texture2D

getPrice() public method

public getPrice ( ) : int
return int

getString() public method

public getString ( ) : string
return string

getWidth() public method

public getWidth ( ) : int
return int

getX() public method

public getX ( ) : int
return int

getY() public method

public getY ( ) : int
return int

setPlayer() public method

public setPlayer ( ) : void
return void

useItem() public method

public useItem ( Player, player ) : void
player Player,
return void

Property Details

description public_oe property

public string description
return string

healingPortion public_oe property

public int healingPortion
return int

itemName public_oe property

public string itemName
return string

methodToCall public_oe property

public string methodToCall
return string

price public_oe property

public int price
return int