C# Class Aura.Channel.World.Inventory.InventoryPocketNormal

Normal inventory with a specific size.
Inheritance: InventoryPocket
Mostra file Open project: aura-project/aura

Protected Properties

Property Type Description
_items Item>.Dictionary
_map ].Item[
_width int

Public Methods

Method Description
Add ( Item item ) : bool
AddUnsafe ( Item item ) : void
CountItem ( bool>.Func predicate ) : int
CountItem ( int itemId ) : int
CountItem ( string tag ) : int
FillStacks ( Item item, List &changed ) : bool
GetItem ( bool>.Func predicate, StartAt startAt ) : Item
GetItem ( long id ) : Item
GetItemAt ( int x, int y ) : Item
GetItems ( bool>.Func predicate, StartAt startAt ) : List
Has ( Item item ) : bool
HasSpace ( Item item ) : bool
InventoryPocketNormal ( Pocket pocket, int width, int height ) : System
Remove ( Item item ) : bool
Remove ( int itemId, int amount, List &changed ) : int
TestMap ( ) : void
TryAdd ( Item newItem, byte targetX, byte targetY, Item &collidingItem ) : bool

Protected Methods

Method Description
AddToMap ( Item item ) : void
ClearFromMap ( Item item ) : void
GetCollidingItems ( uint targetX, uint targetY, Item item ) : List
HasCollisions ( uint targetX, uint targetY, Item item ) : bool

Method Details

Add() public method

public Add ( Item item ) : bool
item Item
return bool

AddToMap() protected method

protected AddToMap ( Item item ) : void
item Item
return void

AddUnsafe() public method

public AddUnsafe ( Item item ) : void
item Item
return void

ClearFromMap() protected method

protected ClearFromMap ( Item item ) : void
item Item
return void

CountItem() public method

public CountItem ( bool>.Func predicate ) : int
predicate bool>.Func
return int

CountItem() public method

public CountItem ( int itemId ) : int
itemId int
return int

CountItem() public method

public CountItem ( string tag ) : int
tag string
return int

FillStacks() public method

public FillStacks ( Item item, List &changed ) : bool
item Item
changed List
return bool

GetCollidingItems() protected method

protected GetCollidingItems ( uint targetX, uint targetY, Item item ) : List
targetX uint
targetY uint
item Item
return List

GetItem() public method

public GetItem ( bool>.Func predicate, StartAt startAt ) : Item
predicate bool>.Func
startAt StartAt
return Item

GetItem() public method

public GetItem ( long id ) : Item
id long
return Item

GetItemAt() public method

public GetItemAt ( int x, int y ) : Item
x int
y int
return Item

GetItems() public method

public GetItems ( bool>.Func predicate, StartAt startAt ) : List
predicate bool>.Func
startAt StartAt
return List

Has() public method

public Has ( Item item ) : bool
item Item
return bool

HasCollisions() protected method

protected HasCollisions ( uint targetX, uint targetY, Item item ) : bool
targetX uint
targetY uint
item Item
return bool

HasSpace() public method

public HasSpace ( Item item ) : bool
item Item
return bool

InventoryPocketNormal() public method

public InventoryPocketNormal ( Pocket pocket, int width, int height ) : System
pocket Pocket
width int
height int
return System

Remove() public method

public Remove ( Item item ) : bool
item Item
return bool

Remove() public method

public Remove ( int itemId, int amount, List &changed ) : int
itemId int
amount int
changed List
return int

TestMap() public method

public TestMap ( ) : void
return void

TryAdd() public method

public TryAdd ( Item newItem, byte targetX, byte targetY, Item &collidingItem ) : bool
newItem Item
targetX byte
targetY byte
collidingItem Item
return bool

Property Details

_items protected_oe property

protected Dictionary _items
return Item>.Dictionary

_map protected_oe property

protected Item[,] _map
return ].Item[

_width protected_oe property

protected int _width
return int