Back to Majik 3D MMORPG information archive main page.
forum index

WHaRaC program

Message 701

From: hook
Date: 2002-02-12 15:04:47


Wildlife habitat range calculator

Rain fall map (string one)

|7047479301
|4657245330
|3833679526
|2968925055
y|1216152795
|9232521494
|2150963568
|2726341812
|3269643702
|3369375642
----------
X

Altitude map (string two)

|8898831388
|0140609266
|8932611046
|7466241392
|3237210136
y|0273436750
|5261897248
|4807749784
|5862306993
|0466567484
----------
x

crow ranges
min_Lat_range = 2
max_Lat_range = 8
min_Rain_range = 1
max_Rain_range = 4
min_Alt_range = 1
max_Alt_range = 3

*this fuction determins if a species is present or not*
Main_animal_range_engine
{
if (Lat_range_funtion),(Rain_range_function), and (Alt_range_function) are all true then true
print X
if not then false
print O
}

*this function determins if species is present at this latitude*
Lat_range_function
{
if (y_cord) is greater then (min_Lat_range) and is less then (max_Lat_range) then true
if not then false
}

*this function determins if species is present at rain number*
Rain_range_function
{
if (rain_number) is greater then (min_Rain_range) and is less then (max_Rain_range) then true
if not then false
}

*this function determins if species is present at altitude number*
Alt_range_function
{
if (alt_number) is greater then (min_Alt_range) and is less then (max_Alt_range) then true
if not then false
}

Message 702

From: Archantes
Date: 2002-02-12 17:09:49
In-Reply-To: 701


Nice pseudo there.. :)

What are you trying to tell me? :) That looks fine to me.. at least as I see it ;)

And every time the animal or plant moves, migrates etc. there will be call for that function to see if it survives there and if not, it will die or move back, right?