.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #14  
Old September 5th, 2008, 11:06 PM

Loren Loren is offline
First Lieutenant
 
Join Date: Nov 2006
Posts: 739
Thanks: 1
Thanked 8 Times in 8 Posts
Loren is on a distinguished road
Default Re: Multi-Tier PD.

Quote:
Originally Posted by HoneyBadger View Post
And having unlimited PD scales not only means more processing, but more micromanagement, and a more crowded screen. PD shouldn't be precise, you should still need to recruit units and support it-and understand what you have, and conform your tactics to it-to really make it shine. It should never do the work for you, if you want to get the most out of it.
Other than extreme chokepoints I can't see any reason for really high PD to be used. Allowing it wouldn't mean it would show up in most cases and wouldn't be a CPU drag. Remember that it doesn't need to actually be calculated except when there is a battle.

Quote:
As far as a self-growing/shrinking PD, that would be nice, but it would also be difficult for the player to manage, and a headache to program-and for that matter, again probably a big drain on processor speed.
CPU time = infinitesimal.

The following code runs (not that it's truly executable as is) once per turn calculation. If the first test fails it's not going to use even a microsecond. If it passes I doubt this is a millisecond.

It is quite possible that the dominion isn't stored this way and that test becomes slightly more complex but it's still hard to reach even a millisecond.

If (Month Mod 3) = 1 then
For Province in Provinces do
With Data[Province] do
If (PD > 10) then
Case Dominion of
1..MaxInt : Inc(Pd);
-1..-MaxInt : Dec(Pd);
End;
Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 03:47 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.