C# Class MiningGameServer.Items.ServerItem

Mostra file Open project: geel9/Minor-Destruction

Public Properties

Property Type Description
InventorySection int
Items List

Public Methods

Method Description
CanPickup ( PlayerClass pClass ) : bool

Returns true if a class can pick up this item

CanPickup ( int PClassIndex ) : bool

Returns true if a class (specified by index) can pick up this item

GenerateItemHTMLTable ( ) : string
GetBlockID ( ) : short
GetDescription ( ) : string
GetItem ( byte id ) : ServerItem
GetItemID ( ) : byte
GetMaxStack ( ) : int
GetName ( ) : string
GetValue ( ) : int
MakeItems ( ) : void
OnItemUsed ( int x, int y, NetworkPlayer user ) : void
SetBlockID ( short id ) : ServerItem
SetClassesPickup ( ) : ServerItem
SetDescription ( string description ) : ServerItem
SetID ( byte id ) : ServerItem
SetMaxStack ( int max ) : ServerItem
SetName ( string name ) : ServerItem
SetValue ( int value ) : ServerItem

Protected Methods

Method Description
ServerItem ( ) : System

Method Details

CanPickup() public method

Returns true if a class can pick up this item
public CanPickup ( PlayerClass pClass ) : bool
pClass MiningGameServer.Player.PlayerClass The PlayerClass to test against
return bool

CanPickup() public method

Returns true if a class (specified by index) can pick up this item
public CanPickup ( int PClassIndex ) : bool
PClassIndex int The index of the class
return bool

GenerateItemHTMLTable() public static method

public static GenerateItemHTMLTable ( ) : string
return string

GetBlockID() public method

public GetBlockID ( ) : short
return short

GetDescription() public method

public GetDescription ( ) : string
return string

GetItem() public static method

public static GetItem ( byte id ) : ServerItem
id byte
return ServerItem

GetItemID() public method

public GetItemID ( ) : byte
return byte

GetMaxStack() public method

public GetMaxStack ( ) : int
return int

GetName() public method

public GetName ( ) : string
return string

GetValue() public method

public GetValue ( ) : int
return int

MakeItems() public static method

public static MakeItems ( ) : void
return void

OnItemUsed() public method

public OnItemUsed ( int x, int y, NetworkPlayer user ) : void
x int
y int
user MiningGameServer.NetworkPlayer
return void

ServerItem() protected method

protected ServerItem ( ) : System
return System

SetBlockID() public method

public SetBlockID ( short id ) : ServerItem
id short
return ServerItem

SetClassesPickup() public method

public SetClassesPickup ( ) : ServerItem
return ServerItem

SetDescription() public method

public SetDescription ( string description ) : ServerItem
description string
return ServerItem

SetID() public method

public SetID ( byte id ) : ServerItem
id byte
return ServerItem

SetMaxStack() public method

public SetMaxStack ( int max ) : ServerItem
max int
return ServerItem

SetName() public method

public SetName ( string name ) : ServerItem
name string
return ServerItem

SetValue() public method

public SetValue ( int value ) : ServerItem
value int
return ServerItem

Property Details

InventorySection public_oe property

public int InventorySection
return int

Items public_oe static_oe property

public static List Items
return List