C# 클래스 LifeSimulation.Core.ShelledLifelet

The ShelledLifelet class represents a protected Lifelet which is only accessable for one specific simulation step. This creates an overhead but ensures that people can't cheat by storing handles to all the lifelets they come across...
파일 보기 프로젝트 열기: dankrusi/life-simulation-challenge 1 사용 예제들

공개 메소드들

메소드 설명
Distance ( Lifelet other ) : double
Distance ( ShelledLifelet other ) : double
Distance ( Vector point ) : double
ShelledLifelet ( Lifelet lifelet, World world ) : System

비공개 메소드들

메소드 설명
checkIfValid ( ) : void

메소드 상세

Distance() 공개 메소드

public Distance ( Lifelet other ) : double
other Lifelet
리턴 double

Distance() 공개 메소드

public Distance ( ShelledLifelet other ) : double
other ShelledLifelet
리턴 double

Distance() 공개 메소드

public Distance ( Vector point ) : double
point Vector
리턴 double

ShelledLifelet() 공개 메소드

public ShelledLifelet ( Lifelet lifelet, World world ) : System
lifelet Lifelet
world World
리턴 System