C# Class Gruppe22.Backend.PlayerChange

The reward provided on quest completion to player.
Inheritance: MapChange
ファイルを表示 Open project: propra13-orga/gruppe22

Public Methods

Method Description
AddFlag ( Int32 flag ) : void

Add a flag on finishing the quest

AddItem ( Item item ) : void

Add a new item to the list to be granted to the player

AddLoseItem ( Item item ) : void

Add a new item to the list to be removed from the player

ClearFlags ( ) : void

Reset the list of flags

ClearItems ( ) : void

Reset the list of items to be granted to the player

ClearLoseItems ( ) : void

Reset the list of items to be removed from the player

PlayerChange ( int xp, List items = null, List loseItems = null, Int32 flags = null ) : System

Constructor

RemoveFlag ( int ID ) : void

Remove a specific flag

RemoveItem ( Item item ) : void

Remove an item from the list of items to be granted to the player

RemoveItem ( int ID ) : void

Remove an item from the list of items to be granted to the player

RemoveLoseItem ( Item item ) : void

Remove an item from the list of items to be granted to the player

RemoveLoseItem ( int ID ) : void

Remove an item from the list of items to be granted to the player

Method Details

AddFlag() public method

Add a flag on finishing the quest
public AddFlag ( Int32 flag ) : void
flag System.Int32
return void

AddItem() public method

Add a new item to the list to be granted to the player
public AddItem ( Item item ) : void
item Item
return void

AddLoseItem() public method

Add a new item to the list to be removed from the player
public AddLoseItem ( Item item ) : void
item Item
return void

ClearFlags() public method

Reset the list of flags
public ClearFlags ( ) : void
return void

ClearItems() public method

Reset the list of items to be granted to the player
public ClearItems ( ) : void
return void

ClearLoseItems() public method

Reset the list of items to be removed from the player
public ClearLoseItems ( ) : void
return void

PlayerChange() public method

Constructor
public PlayerChange ( int xp, List items = null, List loseItems = null, Int32 flags = null ) : System
xp int
items List
loseItems List
flags System.Int32
return System

RemoveFlag() public method

Remove a specific flag
public RemoveFlag ( int ID ) : void
ID int
return void

RemoveItem() public method

Remove an item from the list of items to be granted to the player
public RemoveItem ( Item item ) : void
item Item
return void

RemoveItem() public method

Remove an item from the list of items to be granted to the player
public RemoveItem ( int ID ) : void
ID int
return void

RemoveLoseItem() public method

Remove an item from the list of items to be granted to the player
public RemoveLoseItem ( Item item ) : void
item Item
return void

RemoveLoseItem() public method

Remove an item from the list of items to be granted to the player
public RemoveLoseItem ( int ID ) : void
ID int
return void