Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Variables
Constants
Functions and Procedures
Identifiers

Class AIGrid

Unit

cAIGrid

Declaration

type AIGrid = class(AIBaseObject)

Description

============================================================================

Hierarchy

AIBaseObject

Methods

Overview

Public procedure AlterHeight(aAmount: single);
Public procedure AlterHumidity(aAmount: single);
Public procedure AlterTemperature(aAmount: single);
Public procedure AlterWater(aAmount: single);
Public function AtPole: boolean;
Public procedure Boil;
Public procedure CalculateFullHeights;
Public procedure CalculateFullWaters;
Public procedure CalculateHeights;
Protected procedure CalculateLandMax;
Public procedure CalculateWaters;
Protected procedure CalculateWind;
Public procedure ChangeHeight(aAmount: single);
Public procedure ChangeHumidity(aAmount: single);
Public procedure ChangeTemperature(aAmount: single);
Public procedure ChangeWater(aAmount: single);
Public procedure Condense;
Public procedure Connect( aConnectionUp: AIGrid; aConnectionDown: AIGrid; aConnectionLeft: AIGrid; aConnectionRight: AIGrid);
Public procedure ConnectDiagonals;
Public function Connection(aDirection: integer): AIGrid;
Public Constructor Create( aSpace: pointer; X: integer; Y: integer);
Public procedure DefaultSettings;
Public Destructor Destroy; override;
Public function DetermineLandHeight(aX, aY: single): single;
Public function DetermineWaterHeight(aX, aY: single): single;
Public function ExcessSaturation: single;
Public procedure FreezeWater;
Public function Freezing: boolean;
Public function IsGlacier: boolean;
Public function IsLand: boolean;
Protected procedure JiggleWater;
Public function LandState: integer;
Public procedure LoadFromFile(var aFile: TextFile); override;
Public function Melting: boolean;
Public procedure Naturalize;
Public function NewThing(aKind: integer): pointer;
Public function NoPlants: boolean;
Public function OneLineDisplay: string; override;
Public function OverSaturated: boolean;
Public procedure RaiseSurroundingHeightsBy(newHeight: single);
Public procedure RaiseSurroundingHeightsTo(newHeight: single);
Public function RandomConnection: AIGrid;
Public procedure SaveToFile(var aFile: TextFile); override;
Public function SeaWater: single;
Protected procedure SetChanged(aValue: boolean);
Public procedure Splash(aExcessWater: single);
Public procedure Stabalize;
Public procedure SuckWater(aAmount: single);
Public function SurroundedByWater: boolean;
Public function UnderSaturated: boolean;
Public procedure Vibrate(aEffectType, aEffectIndex, aTimerDeath: integer);
Public function WaterHeight: single;

Description

Public procedure AlterHeight(aAmount: single);

 

Public procedure AlterHumidity(aAmount: single);

 

Public procedure AlterTemperature(aAmount: single);

 

Public procedure AlterWater(aAmount: single);

change by amount

Public function AtPole: boolean;

 

Public procedure Boil;

water spills into adjacent squares

Public procedure CalculateFullHeights;

 

Public procedure CalculateFullWaters;

 

Public procedure CalculateHeights;

 

Protected procedure CalculateLandMax;

 

Public procedure CalculateWaters;

 

Protected procedure CalculateWind;

 

Public procedure ChangeHeight(aAmount: single);

 

Public procedure ChangeHumidity(aAmount: single);

 

Public procedure ChangeTemperature(aAmount: single);

 

Public procedure ChangeWater(aAmount: single);

ENVIRONMENT CALLS ONLY

Public procedure Condense;

temp turns water into humidity

Public procedure Connect( aConnectionUp: AIGrid; aConnectionDown: AIGrid; aConnectionLeft: AIGrid; aConnectionRight: AIGrid);

 

Public procedure ConnectDiagonals;

 

Public function Connection(aDirection: integer): AIGrid;

 

Public Constructor Create( aSpace: pointer; X: integer; Y: integer);

 

Public procedure DefaultSettings;

 

Public Destructor Destroy; override;

 

Public function DetermineLandHeight(aX, aY: single): single;

 

Public function DetermineWaterHeight(aX, aY: single): single;

 

Public function ExcessSaturation: single;

 

Public procedure FreezeWater;

sucks water from surrounding squares

Public function Freezing: boolean;

 

Public function IsGlacier: boolean;

 

Public function IsLand: boolean;

 

Protected procedure JiggleWater;

 

Public function LandState: integer;

 

Public procedure LoadFromFile(var aFile: TextFile); override;

 

Public function Melting: boolean;

 

Public procedure Naturalize;

validate grid

Public function NewThing(aKind: integer): pointer;

uncommon effects on grid

Public function NoPlants: boolean;

 

Public function OneLineDisplay: string; override;

 

Public function OverSaturated: boolean;

 

Public procedure RaiseSurroundingHeightsBy(newHeight: single);

 

Public procedure RaiseSurroundingHeightsTo(newHeight: single);

 

Public function RandomConnection: AIGrid;

 

Public procedure SaveToFile(var aFile: TextFile); override;

 

Public function SeaWater: single;

 

Protected procedure SetChanged(aValue: boolean);

 

Public procedure Splash(aExcessWater: single);

 

Public procedure Stabalize;

create an iceberg

Public procedure SuckWater(aAmount: single);

 

Public function SurroundedByWater: boolean;

 

Public function UnderSaturated: boolean;

 

Public procedure Vibrate(aEffectType, aEffectIndex, aTimerDeath: integer);

condense humidity into a cloud

Public function WaterHeight: single;

 

Properties

Overview

Public property AtBottom: boolean;
Public property AtTop: boolean;
Public property Changed: boolean;
Public property ConnectionDown: AIGrid;
Public property ConnectionDownLeft: AIGrid;
Public property ConnectionDownRight: AIGrid;
Public property ConnectionLeft: AIGrid;
Public property ConnectionRight: AIGrid;
Public property ConnectionUp: AIGrid;
Public property ConnectionUpLeft: AIGrid;
Public property ConnectionUpRight: AIGrid;
Public property Coordinates: AICoordinates;
Public property CornerValues: AIHeightArray;
Public property Height: single;
Public property Humidity: single;
Public property LandMax: single;
Public property Normal: TAffineVector;
Public property Temperature: single;
Public property UnderWater: boolean;
Public property Water: single;
Public property WaterCrossover: pointer;
Public property WaterMax: single;
Public property Wave: TAffineVector;
Public property Wavy: boolean;
Public property Wind: TAffineVector;
Public property Windy: boolean;

Description

Public property AtBottom: boolean;

 

Public property AtTop: boolean;

 

Public property Changed: boolean;

 

Public property ConnectionDown: AIGrid;

 

Public property ConnectionDownLeft: AIGrid;

 

Public property ConnectionDownRight: AIGrid;

 

Public property ConnectionLeft: AIGrid;

 

Public property ConnectionRight: AIGrid;

 

Public property ConnectionUp: AIGrid;

 

Public property ConnectionUpLeft: AIGrid;

 

Public property ConnectionUpRight: AIGrid;

 

Public property Coordinates: AICoordinates;

 

Public property CornerValues: AIHeightArray;

 

Public property Height: single;

 

Public property Humidity: single;

 

Public property LandMax: single;

 

Public property Normal: TAffineVector;

 

Public property Temperature: single;

 

Public property UnderWater: boolean;

 

Public property Water: single;

 

Public property WaterCrossover: pointer;

 

Public property WaterMax: single;

 

Public property Wave: TAffineVector;

 

Public property Wavy: boolean;

 

Public property Wind: TAffineVector;

 

Public property Windy: boolean;

 


Generated by PasDoc 0.8.7 on Wed 01/ Oct 2003 00:51:35