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...
Afficher le fichier Open project: dankrusi/life-simulation-challenge Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode Description
checkIfValid ( ) : void

Method Details

Distance() public méthode

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

Distance() public méthode

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

Distance() public méthode

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

ShelledLifelet() public méthode

public ShelledLifelet ( Lifelet lifelet, World world ) : System
lifelet Lifelet
world World
Résultat System