C# Класс 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...
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Distance ( Lifelet other ) : double
Distance ( ShelledLifelet other ) : double
Distance ( Vector point ) : double
ShelledLifelet ( Lifelet lifelet, World world ) : System

Приватные методы

Метод Описание
checkIfValid ( ) : void

Описание методов

Distance() публичный Метод

public Distance ( Lifelet other ) : double
other Lifelet
Результат double

Distance() публичный Метод

public Distance ( ShelledLifelet other ) : double
other ShelledLifelet
Результат double

Distance() публичный Метод

public Distance ( Vector point ) : double
point Vector
Результат double

ShelledLifelet() публичный Метод

public ShelledLifelet ( Lifelet lifelet, World world ) : System
lifelet Lifelet
world World
Результат System