C# Class 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...
Mostrar archivo Open project: dankrusi/life-simulation-challenge Class Usage Examples

Public Methods

Method Description
Distance ( Lifelet other ) : double
Distance ( ShelledLifelet other ) : double
Distance ( Vector point ) : double
ShelledLifelet ( Lifelet lifelet, World world ) : System

Private Methods

Method Description
checkIfValid ( ) : void

Method Details

Distance() public method

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

Distance() public method

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

Distance() public method

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

ShelledLifelet() public method

public ShelledLifelet ( Lifelet lifelet, World world ) : System
lifelet Lifelet
world World
return System