C# 클래스 BattleShip.Core.Game

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

공개 메소드들

메소드 설명
Game ( string name, Player initiatingPlayer, Player acceptingPlayer, double playerTargetZoneRadius, double shotBlastRadius ) : System
TakeShot ( Player playerTakingShot, GeoCoordinate shotLocation ) : ShotResult

비공개 메소드들

메소드 설명
GetGeoDistanceBetween ( GeoCoordinate first, GeoCoordinate second ) : double
LastShotWasHit ( ) : bool
ShotOnTarget ( Player targetPlayer, GeoCoordinate shotLocation ) : bool
ShotOutsideTargetZone ( Player targetPlayer, GeoCoordinate shotLocation ) : bool

메소드 상세

Game() 공개 메소드

public Game ( string name, Player initiatingPlayer, Player acceptingPlayer, double playerTargetZoneRadius, double shotBlastRadius ) : System
name string
initiatingPlayer Player
acceptingPlayer Player
playerTargetZoneRadius double
shotBlastRadius double
리턴 System

TakeShot() 공개 메소드

public TakeShot ( Player playerTakingShot, GeoCoordinate shotLocation ) : ShotResult
playerTakingShot Player
shotLocation GeoCoordinate
리턴 ShotResult