Latest topics
» The good, the bad, and the ugly
Sun Jun 20, 2010 7:45 pm by Admin

» Events are happing
Wed Apr 14, 2010 11:29 pm by Admin

» Progress! . . .
Fri Apr 09, 2010 5:10 pm by Admin

» Soulmen(jordan)
Wed Feb 24, 2010 7:56 pm by soulmen

» Basic starting blocks
Wed Feb 24, 2010 7:41 pm by Admin

» Okay so uni isn’t so demanding as I first thought.
Mon Oct 26, 2009 4:39 pm by Admin

» MP Architecture: Client/Server or Peer-2-Peer?
Sun Oct 04, 2009 2:34 pm by Daemn

» What I am working on at the Moment READ!
Fri Sep 25, 2009 5:15 pm by Admin

» Development Framework available at SourceForge
Tue Sep 22, 2009 9:46 am by Hairein

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Working on the base Research Class

Go down

Working on the base Research Class

Post by Admin on Wed Jul 29, 2009 5:35 pm

I've basicaly adapted the buildingClass for research development.

the building class will also need to include the extra fields of
researchPointsNeeded
researchPointsGenerated - for example a Libary will generate research points each turn

researchNeeded - Any researches needed,

ive uploaded it to the wiki if anyone wants to have a look, which I suggest you do.

Admin
Admin
Admin

Posts : 105
Points : 3449
Reputation : 3
Join date : 2009-07-16
Age : 28
Location : Wrexham, United Kingdom

View user profile http://spartanstudioforum.darkbb.com

Back to top Go down

Re: Working on the base Research Class

Post by Admin on Thu Jul 30, 2009 12:06 am

heres a link to the code http://ageofgreeks.wikispaces.com/file/detail/ResearchClass.zip

its the same as the buildingclass.

There are two ways of doing the research side of things.
One is where only the territory in which you 'buy' the upgrade may contruibute to it by generating research points. However this could prove to slow.

Or, all research is done collectivly. A total of all the research points gernerated are taken into account. ie territory_1 brings in 12 r.p. and territory_2 brings in 24 r.p making the total 36 r.p per turn.
This option can be split up again, either the user carries out research as and when they want, or its conducted automaticly as for example in the Civilization games.

I personally like the idea of option number 2, what does everyone else think?


Last edited by Admin on Thu Jul 30, 2009 9:05 pm; edited 1 time in total

Admin
Admin
Admin

Posts : 105
Points : 3449
Reputation : 3
Join date : 2009-07-16
Age : 28
Location : Wrexham, United Kingdom

View user profile http://spartanstudioforum.darkbb.com

Back to top Go down

Re: Working on the base Research Class

Post by jsmoore82 on Thu Jul 30, 2009 12:23 am

Automatic means less checking for us, but there is a gameplay issue as when they are wanting to use the resources for something else (say they want a heavier market basd realm than military so they really don't care about weapon type upgrades the barracks and blacksmith require

I would have to say I am more in favor of us checking on the resources as a user choice.

The problem is does each territory have to conduct the research or does every territory in the realm know the same information? Here I would say ovrall that a ruler would make knowledge share (so as to be able to utilize it at the far corners of their realm) rather than hope every territry comes to that realization in technology on its own.

Just my two cents.
avatar
jsmoore82
Regular
Regular

Posts : 46
Points : 3327
Reputation : 1
Join date : 2009-07-25
Age : 35
Location : Spokane, WA

View user profile

Back to top Go down

Re: Working on the base Research Class

Post by Admin on Thu Jul 30, 2009 12:59 am

i'd prefer it if all research was collective rather than every single territory having to research the same technonagy several times.

And you recon the user should research technoagies as and when they feel like? I suppose this would be better as they would have more say in what their kingdom is acctuly doing

Admin
Admin
Admin

Posts : 105
Points : 3449
Reputation : 3
Join date : 2009-07-16
Age : 28
Location : Wrexham, United Kingdom

View user profile http://spartanstudioforum.darkbb.com

Back to top Go down

Re: Working on the base Research Class

Post by jsmoore82 on Sat Aug 01, 2009 9:01 am

Working on the building class further, I noticed a need for an upkeep class (real basic class that was basically a smart Struct). I have made the following assumptions about upkeep.

anything that requires upkeep or maintaince will only impact five numbers.
wood, Marble, Bronze, and gold -> Resource object with +/- values store in the affected fields
and the player's overall morale of people.

upkeep could be viewed in as a building generating resources
or it could be costing resources as maintaince fees (it cost money to feed soldiers...)

Any further suggestions on this aspect?
avatar
jsmoore82
Regular
Regular

Posts : 46
Points : 3327
Reputation : 1
Join date : 2009-07-25
Age : 35
Location : Spokane, WA

View user profile

Back to top Go down

Re: Working on the base Research Class

Post by Admin on Sat Aug 01, 2009 9:19 am

I think It should be seperate, as it isnt just buildings that need the upkeep.
You mention maintanace fees too for troops,

So your idea is, say a Unit of troops costs 2 gold to maintain this will simply e taken off the players resources etc

Admin
Admin
Admin

Posts : 105
Points : 3449
Reputation : 3
Join date : 2009-07-16
Age : 28
Location : Wrexham, United Kingdom

View user profile http://spartanstudioforum.darkbb.com

Back to top Go down

Re: Working on the base Research Class

Post by jsmoore82 on Sat Aug 01, 2009 9:40 am

Right, sorry I was unclear. Yes, the upkeep class is stand alone for just that purpose (i.e. units will also have an upkeep data element). As I am working with buildings right now, I was just illustrating its use in that context.

But, the idea of the upkeep class is understood as to what it is intended to do.
avatar
jsmoore82
Regular
Regular

Posts : 46
Points : 3327
Reputation : 1
Join date : 2009-07-25
Age : 35
Location : Spokane, WA

View user profile

Back to top Go down

Re: Working on the base Research Class

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum