1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: 194: 195: 196: 197: 198: 199: 200: 201: 202: 203: 204: 205: 206: 207: 208: 209: 210: 211: 212: 213: 214: 215: 216: 217:
| unit Unit2;
interface
type MinenArrayType = Array [1..3, 1..5] of double; LagerArrayType = Array [1..4, 1..5] of double; PlaniArrayType = Array [1..6, 1..7] of double;
var MinenTyp : MinenArrayType; LagerTyp : LagerArrayType; PlaniTyp : PlaniArrayType;
const Stufe40=40;
KMetall=250; KKristall=100; KZivis=125; KSoldis=0; KLager=500; FMetall=125; FKristall=400; FZivis=250; FSoldis=0; FLager=0; RaMetall=375; RaKristall=250; RaZivis=100; RaSoldis=37; RaLager=0; RuMetall=250; RuKristall=125; RuZivis=125; RuSoldis=50; RuLager=0; HMetall=100; HKristall=50; HZivis=250; HSoldis=0; HLager=0; MHQMetall=375; MHQKristall=125; MHQZivis=1250; MHQSoldis=50; MHQLager=0; OMetall=3750; OKristall=3750; OZivis=2500; OSoldis=5000; OLager=0; SMetall=2500; SKristall=7500; SZivis=2500; SSoldis=1250; SLager=0; KTMetall=375; KTKristall=500; KTZivis=125; KTSoldis=0; KTLager=0; MaMetall=1250; MaKristall=2500; MaZivis=2000; MaSoldis=0; MaLager=0; RoMetall=3750; RoKristall=7500; RoZivis=2500; RoSoldis=0; RoLager=0; SpMetall=500; SpKristall=250; SpZivis=125; SPSoldis=25; SPLager=0;
var BuildingChange:Boolean; RessChangeMet:double; RessChangeKris:double; RessChangeZivis:double; RessChangeSoldis:double; BonusChange:double; MBonus,MBonusChange,KBonus,KBonusChange,ABonus,ABonusChange,ZBonus,ZBonusChange:Double; LagerChange:double; Metall,Kristall,Zivis,Soldis,Lager:double; Bonus:double; MetKosten,KrisKosten,ZiviKosten,SoldisKosten,Lagermenge,GesamtLager:double; MRessProd,KRessProd,ARessProd:double; kosten:integer; I:integer; MetKostenStr:String; KrisKostenStr:String; ZiviKostenStr:string; SoldisKostenStr:String; RessProdStr:string; LagerStr:String; MetProd,KrisProd,AntiProd:double;
implementation
begin
MinenTyp[1,1]:=125; MinenTyp[1,2]:=12; MinenTyp[1,3]:=50; MinenTyp[1,4]:=0; MinenTyp[1,5]:=0; MinenTyp[2,1]:=10; MinenTyp[2,2]:=100; MinenTyp[2,3]:=75; MinenTyp[2,4]:=0; MinenTyp[2,5]:=0; MinenTyp[3,1]:=25; MinenTyp[3,2]:=125; MinenTyp[3,3]:=100; MinenTyp[3,4]:=0; MinenTyp[3,5]:=0; LagerTyp[1,1]:=25; LagerTyp[1,2]:=12; LagerTyp[1,3]:=12; LagerTyp[1,4]:=0; LagerTyp[1,5]:=5000; LagerTyp[2,1]:=25; LagerTyp[2,2]:=12; LagerTyp[2,3]:=12; LagerTyp[2,4]:=0; LagerTyp[2,5]:=5000; LagerTyp[3,1]:=25; LagerTyp[3,2]:=37; LagerTyp[3,3]:=25; LagerTyp[3,4]:=0; LagerTyp[3,5]:=5000; LagerTyp[4,1]:=75; LagerTyp[4,2]:=25; LagerTyp[4,3]:=12; LagerTyp[4,4]:=0; LagerTyp[4,5]:=5000; PlaniTyp[1,1]:= 800; PlaniTyp[1,2]:= 500; PlaniTyp[1,3]:= 100; PlaniTyp[1,4]:= 80; PlaniTyp[1,5]:= 80; PlaniTyp[1,6]:= 80; PlaniTyp[1,7]:= 0; PlaniTyp[2,1]:= 800; PlaniTyp[2,2]:= 500; PlaniTyp[2,3]:=100; PlaniTyp[2,4]:= 100; PlaniTyp[2,5]:= 125; PlaniTyp[2,6]:= 100; PlaniTyp[2,7]:= 1; PlaniTyp[3,1]:=800; PlaniTyp[3,2]:= 500; PlaniTyp[3,3]:=100; PlaniTyp[3,4]:= 125; PlaniTyp[3,5]:= 100; PlaniTyp[3,6]:= 100; PlaniTyp[3,7]:= 0; PlaniTyp[4,1]:=800; PlaniTyp[4,2]:=500; PlaniTyp[4,3]:=100; PlaniTyp[4,4]:= 110; PlaniTyp[4,5]:= 110; PlaniTyp[4,6]:= 80; PlaniTyp[4,7]:= 2; PlaniTyp[5,1]:=800; PlaniTyp[5,2]:=500; PlaniTyp[5,3]:=100; PlaniTyp[5,4]:= 100; PlaniTyp[5,5]:= 100; PlaniTyp[5,6]:= 70; PlaniTyp[5,7]:= 3; PlaniTyp[6,1]:=800; PlaniTyp[6,2]:=500; PlaniTyp[6,3]:=100; PlaniTyp[6,4]:= 90; PlaniTyp[6,5]:= 90; PlaniTyp[6,6]:= 60; PlaniTyp[6,7]:= 5; end. |