Working on the base Research Class
2 posters
New Dawn :: Development :: Coding
Page 1 of 1
Working on the base Research Class
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.
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.
Re: Working on the base Research Class
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?
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
Re: Working on the base Research Class
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.
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.
jsmoore82- Regular
- Posts : 46
Points : 5494
Reputation : 1
Join date : 2009-07-25
Age : 41
Location : Spokane, WA
Re: Working on the base Research Class
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
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
Re: Working on the base Research Class
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?
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?
jsmoore82- Regular
- Posts : 46
Points : 5494
Reputation : 1
Join date : 2009-07-25
Age : 41
Location : Spokane, WA
Re: Working on the base Research Class
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
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
Re: Working on the base Research Class
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.
But, the idea of the upkeep class is understood as to what it is intended to do.
jsmoore82- Regular
- Posts : 46
Points : 5494
Reputation : 1
Join date : 2009-07-25
Age : 41
Location : Spokane, WA
Similar topics
» Working on the base building class (abstract parent)
» What I am working on at the Moment READ!
» Renaming playerResources class
» Sample class dialog between player, territory, and building to build or upgrade
» What I am working on at the Moment READ!
» Renaming playerResources class
» Sample class dialog between player, territory, and building to build or upgrade
New Dawn :: Development :: Coding
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
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