What I am working on at the Moment READ!
New Dawn :: Development :: Coding
Page 1 of 1
What I am working on at the Moment READ!
The purpose of this post is to get everyone communicating a bit more. I would like to see more topics where each team member posts regular updates on what they are currently working on. I want to get our team discussing more in these forums, at the moment I, as well as some others do not feel as if this is currently the case.
Even if its something like "I i've finished modeling a shield, here it is, what does everyone think? Next I'll be working on this" . . . . or "how can I improve . . . . .?"
The work that I do see, I am very proud of. So thanks to all of you that have contributed. We just need to work together more, rather than doing our own little thing.
As for me I've been tooling up on some scripting so I hope to turn this into a more extensible bit of code where maps can be writen at run time rather that compile time.
This is the code we currently have, not particulary great . . . . you all know whats coming next. . . . . Discuss!
Even if its something like "I i've finished modeling a shield, here it is, what does everyone think? Next I'll be working on this" . . . . or "how can I improve . . . . .?"
The work that I do see, I am very proud of. So thanks to all of you that have contributed. We just need to work together more, rather than doing our own little thing.
As for me I've been tooling up on some scripting so I hope to turn this into a more extensible bit of code where maps can be writen at run time rather that compile time.
This is the code we currently have, not particulary great . . . . you all know whats coming next. . . . . Discuss!
- Code:
int Num_of_Territories;
// Another function would go here instead of this.
// Determined by StartOptions();
int tarray[5][9] = { 1,0,0,0,0,2,1,0,5,
0,0,0,0,0,1,1,0,5,
0,0,0,0,0,2,1,0,5,
0,0,0,0,0,2,2,0,5,
0,0,0,0,0,3,2,0,5,};
// may make more scence to combine towner into tarray?
int towner[5] = { 2,2,1,1,0 };
char arrayC[5][32] = { "Saxony", "Athens", "Pompay", "Sparta", "Troy" };
cout << "Number of Territories: "<< endl; //! Not Needed
cin >> Num_of_Territories;
TERRITORY* territorylist = new TERRITORY[Num_of_Territories];
for(int i = 0; i < Num_of_Territories; i++)
{
territorylist[i].CreateLand (arrayC[i],towner[i],tarray[i][0],tarray[i][1],tarray[i][2],tarray[i][3],tarray[i][4],tarray[i][5],tarray[i][6],weaponlist[1].GetDamage(),tarray[i][8]);
}
//! The selected territories data avalible for use with build functions
int j=0;
cout << "Please select your territory: ";
cin >>j;
int stupidaarray[7] = { territorylist[j].GetBuild_1(), territorylist[j].GetBuild_2(),
territorylist[j].GetBuild_3(), territorylist[j].GetBuild_4(),
territorylist[j].GetBuild_5(), territorylist[j].GetBuild_6(),
territorylist[j].GetBuild_7()
};
// Data
// array or containers where the data is to be read from, will be increased here.
// This will arm the next territory to be created with the correct data.
// DisplayTerraData_All()
// GenerateLandByType(list, Num_of_Territories, territory_land, Num_of_Territories);
/*
for (int loop=0;loop < Num_of_Territories;loop++)
{
cout << loop+1 << ": " << territorylist[loop].GetName();
cout << " - build_1 " << territorylist[loop].GetBuild_1();
cout << ", build_2: " << territorylist[loop].GetBuild_2() << endl;
}
cout << "Weapon: " << territorylist[1].GetWeapon()->GetDamage();
territorylist[1].SetBuild_1(1);
cout << endl; //! Not needed.
cout << "Territory 2 building 1: " << territorylist[1].GetBuild_1();
*/
Re: What I am working on at the Moment READ!
This is what i'm working on to read in map data.
http://ageofgreekscodeonline.wikispaces.com/file/view/currentlyworking.html
http://ageofgreekscodeonline.wikispaces.com/file/view/currentlyworking.html
Similar topics
» Working on the base Research Class
» Working on the base building class (abstract parent)
» Must Read & Reply
» Hairein & distance80 read this!
» Working on the base building class (abstract parent)
» Must Read & Reply
» Hairein & distance80 read this!
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