C# 클래스 MBC.Controllers.DaveBot_1_4_5.CellStateMap

파일 보기 프로젝트 열기: aiclub/Mohawk_Battleship 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
map cellState[][]

보호된 프로퍼티들

프로퍼티 타입 설명
size int

공개 메소드들

메소드 설명
CellStateMap ( int size ) : System
getState ( Coordinates coords ) : cellState
getState ( int x, int y ) : cellState
reset ( ) : void
setState ( Coordinates coords, cellState state ) : void
setState ( int x, int y, cellState state ) : void

메소드 상세

CellStateMap() 공개 메소드

public CellStateMap ( int size ) : System
size int
리턴 System

getState() 공개 메소드

public getState ( Coordinates coords ) : cellState
coords Coordinates
리턴 cellState

getState() 공개 메소드

public getState ( int x, int y ) : cellState
x int
y int
리턴 cellState

reset() 공개 메소드

public reset ( ) : void
리턴 void

setState() 공개 메소드

public setState ( Coordinates coords, cellState state ) : void
coords Coordinates
state cellState
리턴 void

setState() 공개 메소드

public setState ( int x, int y, cellState state ) : void
x int
y int
state cellState
리턴 void

프로퍼티 상세

map 공개적으로 프로퍼티

public cellState[][] map
리턴 cellState[][]

size 보호되어 있는 프로퍼티

protected int size
리턴 int