C# Class BattleNet.Container

Mostra file Open project: dkuwahara/AlphaBot Class Usage Examples

Public Properties

Property Type Description
m_fields List
m_items List

Protected Properties

Property Type Description
m_name String
m_width System.Int32

Public Methods

Method Description
Add ( Item item ) : void
Container ( String name, Int32 width, Int32 height ) : System
FindFreeSpace ( Item item ) : System.Boolean
FindFreeSpace ( Item item, Coordinate &output ) : System.Boolean
NumberFields ( ) : UInt32
Remove ( Item item ) : void

Protected Methods

Method Description
RectangleIsFree ( int rectangleX, int rectangleY, int rectangleWidth, int rectangleHeight ) : System.Boolean
SetItemFields ( Item item, bool value ) : void

Method Details

Add() public method

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

Container() public method

public Container ( String name, Int32 width, Int32 height ) : System
name String
width System.Int32
height System.Int32
return System

FindFreeSpace() public method

public FindFreeSpace ( Item item ) : System.Boolean
item Item
return System.Boolean

FindFreeSpace() public method

public FindFreeSpace ( Item item, Coordinate &output ) : System.Boolean
item Item
output Coordinate
return System.Boolean

NumberFields() public method

public NumberFields ( ) : UInt32
return System.UInt32

RectangleIsFree() protected method

protected RectangleIsFree ( int rectangleX, int rectangleY, int rectangleWidth, int rectangleHeight ) : System.Boolean
rectangleX int
rectangleY int
rectangleWidth int
rectangleHeight int
return System.Boolean

Remove() public method

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

SetItemFields() protected method

protected SetItemFields ( Item item, bool value ) : void
item Item
value bool
return void

Property Details

m_fields public_oe property

public List m_fields
return List

m_items public_oe property

public List m_items
return List

m_name protected_oe property

protected String m_name
return String

m_width protected_oe property

protected Int32,System m_width
return System.Int32