C# Class SnakeAI.Game.GameBoard2D

Inheritance: SnakeAI.Game.GameBoard
显示文件 Open project: maxolib/SnakeAI

Public Methods

Method Description
CreateBlock ( Image _obj, Transform _transform, Color _color ) : Image
CreateTileBlock ( Image _obj, Transform _transform, Color _color, DirectionType _direction ) : Image

Protected Methods

Method Description
OnStart ( ) : void
RenderState ( ) : void
SetStateObject ( ) : void

Private Methods

Method Description
GetDirectionFromPoints ( Vector2 _start, Vector2 _end ) : DirectionType
SetBlockPosition ( Image _obj, Vector2 _position ) : void

Method Details

CreateBlock() public method

public CreateBlock ( Image _obj, Transform _transform, Color _color ) : Image
_obj Image
_transform Transform
_color Color
return Image

CreateTileBlock() public method

public CreateTileBlock ( Image _obj, Transform _transform, Color _color, DirectionType _direction ) : Image
_obj Image
_transform Transform
_color Color
_direction DirectionType
return Image

OnStart() protected method

protected OnStart ( ) : void
return void

RenderState() protected method

protected RenderState ( ) : void
return void

SetStateObject() protected method

protected SetStateObject ( ) : void
return void