C# 클래스 MiningGame.Code.Blocks.Block

파일 보기 프로젝트 열기: geel9/Minor-Destruction

공개 프로퍼티들

프로퍼티 타입 설명
AllBlocks List

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
BlockPlaced ( int x, int y, bool notify = true ) : void
BlockRemoved ( int x, int y ) : void

메소드 상세

Block() 공개 메소드

public Block ( ) : System
리턴 System

FinalizeBlock() 공개 메소드

public FinalizeBlock ( ) : Block
리턴 Block

GenerateBlocks() 공개 정적인 메소드

public static GenerateBlocks ( ) : void
리턴 void

GetBlock() 공개 정적인 메소드

public static GetBlock ( short blockID ) : Block
blockID short
리턴 Block

GetBlockBoundBox() 공개 메소드

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

GetBlockHardness() 공개 메소드

public GetBlockHardness ( ) : int
리턴 int

GetBlockHide() 공개 메소드

public GetBlockHide ( ) : bool
리턴 bool

GetBlockID() 공개 메소드

public GetBlockID ( ) : short
리턴 short

GetBlockLightLevel() 공개 메소드

public GetBlockLightLevel ( ) : int
리턴 int

GetBlockName() 공개 메소드

public GetBlockName ( ) : string
리턴 string

GetBlockNumConnectionsAllowed() 공개 메소드

public GetBlockNumConnectionsAllowed ( ) : int
리턴 int

GetBlockOpaque() 공개 메소드

public GetBlockOpaque ( ) : bool
리턴 bool

GetBlockRenderColor() 공개 메소드

public GetBlockRenderColor ( ) : Color
리턴 Color

GetBlockRenderSpecial() 공개 메소드

public GetBlockRenderSpecial ( ) : bool
리턴 bool

GetBlockWalkThrough() 공개 메소드

public GetBlockWalkThrough ( ) : bool
리턴 bool

GetItemDrop() 공개 메소드

public GetItemDrop ( int x, int y ) : byte
x int
y int
리턴 byte

GetItemDropNum() 공개 메소드

public GetItemDropNum ( int x, int y ) : int
x int
y int
리턴 int

OnBlockPlaced() 공개 메소드

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

OnBlockRemoved() 공개 메소드

public OnBlockRemoved ( int x, int y ) : void
x int
y int
리턴 void

OnBlockTouched() 공개 메소드

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

OnBlockUpdate() 공개 메소드

public OnBlockUpdate ( int x, int y ) : int
x int
y int
리턴 int

OnBlockUsed() 공개 메소드

public OnBlockUsed ( int x, int y ) : void
x int
y int
리턴 void

RenderBlock() 공개 메소드

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

SetBlockColor() 공개 메소드

public SetBlockColor ( Color c ) : Block
c Color
리턴 Block

SetBlockColorRGBA() 공개 메소드

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

SetBlockHardness() 공개 메소드

public SetBlockHardness ( int hardness ) : Block
hardness int
리턴 Block

SetBlockHide() 공개 메소드

public SetBlockHide ( bool hide ) : Block
hide bool
리턴 Block

SetBlockID() 공개 메소드

public SetBlockID ( short id ) : Block
id short
리턴 Block

SetBlockLightLevel() 공개 메소드

public SetBlockLightLevel ( int l ) : Block
l int
리턴 Block

SetBlockName() 공개 메소드

public SetBlockName ( string name ) : Block
name string
리턴 Block

SetBlockOpaque() 공개 메소드

public SetBlockOpaque ( bool opaque ) : Block
opaque bool
리턴 Block

SetBlockRenderSpecial() 공개 메소드

public SetBlockRenderSpecial ( bool special ) : Block
special bool
리턴 Block

SetBlockWalkThrough() 공개 메소드

public SetBlockWalkThrough ( bool b ) : Block
b bool
리턴 Block

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

프로퍼티 상세

AllBlocks 공개적으로 정적으로 프로퍼티

public static List AllBlocks
리턴 List