C# Class ManaPotion

Inheritance: Item
Show file Open project: marouen-lamiri/Second-Soul Class Usage Examples

Public Properties

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

Public Methods

Method Description
ManaPotion ( ) : 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

ManaPotion() public method

public ManaPotion ( ) : 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 property

public string description
return string

itemName public property

public string itemName
return string

methodToCall public property

public string methodToCall
return string

price public property

public int price
return int

rechargePortion public property

public int rechargePortion
return int