C# Class LifeSimulation.Core.Obstacle

Base class containing standard world obstacle properties.
Afficher le fichier Open project: dankrusi/life-simulation-challenge

Protected Properties

Свойство Type Description
_maxAge int
_world World

Méthodes publiques

Méthode 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 méthode

public Distance ( Lifelet other ) : double
other Lifelet
Résultat double

Distance() public méthode

public Distance ( Vector point ) : double
point Vector
Résultat double

Draw() public méthode

public Draw ( Graphics g ) : void
g System.Drawing.Graphics
Résultat void

Obstacle() public méthode

public Obstacle ( World world, Vector pos ) : System
world World
pos Vector
Résultat System

Simulate() public méthode

public Simulate ( ) : void
Résultat void

Property Details

_maxAge protected_oe property

protected int _maxAge
Résultat int

_world protected_oe property

protected World,LifeSimulation.Core _world
Résultat World