home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Game Killer
/
Game_Killer.bin
/
123.PORTSTAT.INC
< prev
next >
Wrap
Text File
|
1992-07-12
|
360b
|
15 lines
function ComputePortType( g : GoodsArray ) : stuff;
{ look at the goods array, and assign the approprate port type. }
var
return : stuff;
begin
if g[Fuel] > 0 then
return := 1
else
return := 0;
if g[Organics] > 0 then
return := return + 2;
if g[Equipment] > 0 then
return := return + 4;
ComputePortType := return;
end;