C# 클래스 LifeSimulation.Core.Obstacle

Base class containing standard world obstacle properties.
파일 보기 프로젝트 열기: dankrusi/life-simulation-challenge

보호된 프로퍼티들

프로퍼티 타입 설명
_maxAge int
_world World

공개 메소드들

메소드 설명
Distance ( Lifelet other ) : double
Distance ( Vector point ) : double
Draw ( Graphics g ) : void
Obstacle ( World world, Vector pos ) : System
Simulate ( ) : void

메소드 상세

Distance() 공개 메소드

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

Distance() 공개 메소드

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

Draw() 공개 메소드

public Draw ( Graphics g ) : void
g System.Drawing.Graphics
리턴 void

Obstacle() 공개 메소드

public Obstacle ( World world, Vector pos ) : System
world World
pos Vector
리턴 System

Simulate() 공개 메소드

public Simulate ( ) : void
리턴 void

프로퍼티 상세

_maxAge 보호되어 있는 프로퍼티

protected int _maxAge
리턴 int

_world 보호되어 있는 프로퍼티

protected World,LifeSimulation.Core _world
리턴 World