C# Class MiningGame.Code.Blocks.Block

Mostra file Open project: geel9/Minor-Destruction

Public Properties

Property Type Description
AllBlocks List

Public Methods

Method Description
Block ( ) : System
FinalizeBlock ( ) : Block
GenerateBlocks ( ) : void
GetBlock ( short blockID ) : Block
GetBlockBoundBox ( int X, int Y ) : Rectangle
GetBlockHardness ( ) : int
GetBlockHide ( ) : bool
GetBlockID ( ) : short
GetBlockLightLevel ( ) : int
GetBlockName ( ) : string
GetBlockNumConnectionsAllowed ( ) : int
GetBlockOpaque ( ) : bool
GetBlockRenderColor ( ) : Color
GetBlockRenderSpecial ( ) : bool
GetBlockWalkThrough ( ) : bool
GetItemDrop ( int x, int y ) : byte
GetItemDropNum ( int x, int y ) : int
OnBlockPlaced ( int x, int y, bool notify ) : void
OnBlockRemoved ( int x, int y ) : void
OnBlockTouched ( int X, int Y, int side, Entities toucher ) : void
OnBlockUpdate ( int x, int y ) : int
OnBlockUsed ( int x, int y ) : void
RenderBlock ( int x, int y, SpriteBatch sb ) : BlockRenderer
SetBlockColor ( Color c ) : Block
SetBlockColorRGBA ( int r, int g, int b, int a = 255 ) : Block
SetBlockHardness ( int hardness ) : Block
SetBlockHide ( bool hide ) : Block
SetBlockID ( short id ) : Block
SetBlockLightLevel ( int l ) : Block
SetBlockName ( string name ) : Block
SetBlockOpaque ( bool opaque ) : Block
SetBlockRenderSpecial ( bool special ) : Block
SetBlockWalkThrough ( bool b ) : Block
ToString ( ) : string

Private Methods

Method Description
BlockPlaced ( int x, int y, bool notify = true ) : void
BlockRemoved ( int x, int y ) : void

Method Details

Block() public method

public Block ( ) : System
return System

FinalizeBlock() public method

public FinalizeBlock ( ) : Block
return Block

GenerateBlocks() public static method

public static GenerateBlocks ( ) : void
return void

GetBlock() public static method

public static GetBlock ( short blockID ) : Block
blockID short
return Block

GetBlockBoundBox() public method

public GetBlockBoundBox ( int X, int Y ) : Rectangle
X int
Y int
return Microsoft.Xna.Framework.Rectangle

GetBlockHardness() public method

public GetBlockHardness ( ) : int
return int

GetBlockHide() public method

public GetBlockHide ( ) : bool
return bool

GetBlockID() public method

public GetBlockID ( ) : short
return short

GetBlockLightLevel() public method

public GetBlockLightLevel ( ) : int
return int

GetBlockName() public method

public GetBlockName ( ) : string
return string

GetBlockNumConnectionsAllowed() public method

public GetBlockNumConnectionsAllowed ( ) : int
return int

GetBlockOpaque() public method

public GetBlockOpaque ( ) : bool
return bool

GetBlockRenderColor() public method

public GetBlockRenderColor ( ) : Color
return Color

GetBlockRenderSpecial() public method

public GetBlockRenderSpecial ( ) : bool
return bool

GetBlockWalkThrough() public method

public GetBlockWalkThrough ( ) : bool
return bool

GetItemDrop() public method

public GetItemDrop ( int x, int y ) : byte
x int
y int
return byte

GetItemDropNum() public method

public GetItemDropNum ( int x, int y ) : int
x int
y int
return int

OnBlockPlaced() public method

public OnBlockPlaced ( int x, int y, bool notify ) : void
x int
y int
notify bool
return void

OnBlockRemoved() public method

public OnBlockRemoved ( int x, int y ) : void
x int
y int
return void

OnBlockTouched() public method

public OnBlockTouched ( int X, int Y, int side, Entities toucher ) : void
X int
Y int
side int
toucher Entities
return void

OnBlockUpdate() public method

public OnBlockUpdate ( int x, int y ) : int
x int
y int
return int

OnBlockUsed() public method

public OnBlockUsed ( int x, int y ) : void
x int
y int
return void

RenderBlock() public method

public RenderBlock ( int x, int y, SpriteBatch sb ) : BlockRenderer
x int
y int
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return BlockRenderer

SetBlockColor() public method

public SetBlockColor ( Color c ) : Block
c Color
return Block

SetBlockColorRGBA() public method

public SetBlockColorRGBA ( int r, int g, int b, int a = 255 ) : Block
r int
g int
b int
a int
return Block

SetBlockHardness() public method

public SetBlockHardness ( int hardness ) : Block
hardness int
return Block

SetBlockHide() public method

public SetBlockHide ( bool hide ) : Block
hide bool
return Block

SetBlockID() public method

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

SetBlockLightLevel() public method

public SetBlockLightLevel ( int l ) : Block
l int
return Block

SetBlockName() public method

public SetBlockName ( string name ) : Block
name string
return Block

SetBlockOpaque() public method

public SetBlockOpaque ( bool opaque ) : Block
opaque bool
return Block

SetBlockRenderSpecial() public method

public SetBlockRenderSpecial ( bool special ) : Block
special bool
return Block

SetBlockWalkThrough() public method

public SetBlockWalkThrough ( bool b ) : Block
b bool
return Block

ToString() public method

public ToString ( ) : string
return string

Property Details

AllBlocks public_oe static_oe property

public static List AllBlocks
return List