C# Класс Drought.World.Water

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Water ( List points, LevelInfo levelInfo, Sun aSun, GraphicsDevice graphics ) : System
approximateArea ( float circumference, float height ) : float
findWater ( LevelInfo levelInfo ) : List>
initialize ( List points, LevelInfo levelInfo ) : void
removeWater ( float amt ) : float
render ( GraphicsDevice graphics, Matrix viewMatrix, Matrix projectionMatrix ) : void
update ( GameTime gameTime ) : void

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

Метод Описание
depthFirstSearch ( Vector3 start, Vector3 end ) : List
depthFirstSearch ( Vector3 curr, Vector3 goal, List path ) : Vector3
edgeFacesPoint ( WaterEdge edge, Vector3 point ) : bool
facePointArea ( List points, Vector3 center ) : List
isClosed ( List points, Vector3 center, Vector3 a, Vector3 b ) : List
isEdge ( int x, int y ) : bool
minimumConvexArea ( List points, List initialPoints, Vector3 center ) : List
notEdgePoint ( Vector3 p, LevelInfo levelInfo ) : bool
setNewWaterLevel ( ) : void

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

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

public Water ( List points, LevelInfo levelInfo, Sun aSun, GraphicsDevice graphics ) : System
points List
levelInfo LevelInfo
aSun Sun
graphics GraphicsDevice
Результат System

approximateArea() публичный статический Метод

public static approximateArea ( float circumference, float height ) : float
circumference float
height float
Результат float

findWater() публичный статический Метод

public static findWater ( LevelInfo levelInfo ) : List>
levelInfo LevelInfo
Результат List>

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

public initialize ( List points, LevelInfo levelInfo ) : void
points List
levelInfo LevelInfo
Результат void

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

public removeWater ( float amt ) : float
amt float
Результат float

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

public render ( GraphicsDevice graphics, Matrix viewMatrix, Matrix projectionMatrix ) : void
graphics GraphicsDevice
viewMatrix Matrix
projectionMatrix Matrix
Результат void

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

public update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void