Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Build Order - Programm
#4
In Java sähe das so aus:
Code:
int level = 8; // Aktuelle Stufe des Gebäudes
int base = 1080; // Die erste Zahl
float factor = 1.2; // Die zweite Zahl
int time = (int)Math.round(base * Math.pow(factor, level)); // Evtl. auch level-1, bin nicht ganz sicher

Hier fehlt jetzt aber noch der Faktor der Stufe der Hauptgebäudes.
Reply


Messages In This Thread
Build Order - Programm - by Speedbreacker - 22.01.2012, 17:59
RE: Build Order - Programm - by Molt - 22.01.2012, 19:23
RE: Build Order - Programm - by Speedbreacker - 22.01.2012, 19:43
RE: Build Order - Programm - by Molt - 22.01.2012, 19:56
RE: Build Order - Programm - by Speedbreacker - 23.01.2012, 18:38
RE: Build Order - Programm - by Molt - 24.01.2012, 16:18
RE: Build Order - Programm - by Speedbreacker - 22.01.2012, 21:03
RE: Build Order - Programm - by agrafix - 23.01.2012, 06:10
RE: Build Order - Programm - by SlimShady95 - 23.01.2012, 13:50
RE: Build Order - Programm - by pL4n3 - 23.01.2012, 13:55
RE: Build Order - Programm - by SlimShady95 - 23.01.2012, 13:58
RE: Build Order - Programm - by Speedbreacker - 23.01.2012, 15:40
RE: Build Order - Programm - by agrafix - 23.01.2012, 15:44
RE: Build Order - Programm - by Speedbreacker - 23.01.2012, 17:31
RE: Build Order - Programm - by pL4n3 - 23.01.2012, 19:07
RE: Build Order - Programm - by agrafix - 24.01.2012, 02:20
RE: Build Order - Programm - by Speedbreacker - 24.01.2012, 16:43
RE: Build Order - Programm - by fantasius2 - 31.01.2012, 14:22
RE: Build Order - Programm - by Speedbreacker - 07.02.2012, 23:28
RE: Build Order - Programm - by agrafix - 09.02.2012, 05:12



Users browsing this thread: 2 Guest(s)