C# Class LifeSimulation.Core.Obstacle

Base class containing standard world obstacle properties.
Mostra file Open project: dankrusi/life-simulation-challenge

Protected Properties

Property Type Description
_maxAge int
_world World

Public Methods

Method Description
Distance ( Lifelet other ) : double
Distance ( Vector point ) : double
Draw ( Graphics g ) : void
Obstacle ( World world, Vector pos ) : System
Simulate ( ) : void

Method Details

Distance() public method

public Distance ( Lifelet other ) : double
other Lifelet
return double

Distance() public method

public Distance ( Vector point ) : double
point Vector
return double

Draw() public method

public Draw ( Graphics g ) : void
g System.Drawing.Graphics
return void

Obstacle() public method

public Obstacle ( World world, Vector pos ) : System
world World
pos Vector
return System

Simulate() public method

public Simulate ( ) : void
return void

Property Details

_maxAge protected_oe property

protected int _maxAge
return int

_world protected_oe property

protected World,LifeSimulation.Core _world
return World