 |
|
KHOMAR
|
|
L'ISLE-ADAM
Feb 2004 time: 05:33
|
|
-It could be useful to extend unitrecord parameters to all
parameters of units,all flags(BuildClasses??) for modmaking purposes.
-Possibly,we could need StringCompare function to be fixed.
-String Arrays allowed
-a value called "special" or something,for the "Prerequisite" heading which have the following effect:
The advance/unit is not allowed at game start and is allowed independently of any advance/building/wonder.
(other game parameters:date,country,chance,etc....SLIC programmed)
-possibility of inserting images in messages.(messagebox)
-An Auto-Mode for Units,with SLIC pre-programmable behavior (exploring,patrolling,etc..)
|
|
|  |
 |
|
MrBaggins
|
|
quote: Originally posted by KHOMAR
-It could be useful to extend unitrecord parameters to all
parameters of units,all flags(BuildClasses??) for modmaking purposes.
|
Not a huge problem. Extra flags will be fully documented, when we implement each functionality.
quote:
-Possibly,we could need StringCompare function to be fixed.
-String Arrays allowed
|
Any particular reason why? It would have been nice for finding out what government you are, or what you're researching but... those are simply dealt with by providing a function, returning an index (int), which is how they're stored in the db's by the way.
quote:
-a value called "special" or something,for the "Prerequisite" heading which have the following effect:
The advance/unit is not allowed at game start and is allowed independently of any advance/building/wonder.
(other game parameters:date,country,chance,etc....SLIC programmed)
|
Thats what BuildClasses will be able to do. SLIC will be able to interact by checking, and enabling/disabling both local and global buildclasses
quote:
-possibility of inserting images in messages.(messagebox)
|
If I recall, we already can... but you have to customize sizing ahead of time, right now.
quote:
-An Auto-Mode for Units,with SLIC pre-programmable behavior (exploring,patrolling,etc..) |
Very interesting.
|
|
|  |
 |
|
Peter Triggs
|
|
Gone Fishin, Canada
Jan 2000 time: 05:33
|
|
quote:
It would have been nice for finding out what government you are, or what you're researching but... those are simply dealt with by providing a function, returning an index (int), which is how they're stored in the db's by the way.
|
The database index of the player's current government:
code:
// added by PFT: player[ ].govtdbind
class PlayerSymbol_Govtdbind : public SlicStructMemberData {
DEF_MAKECOPY(PlayerSymbol_Govtdbind);
BOOL GetIntValue(sint32 &value) const {
sint32 pl;
BOOL res = m_parent->GetDataSymbol()->GetPlayer(pl);
Assert(res);
if(res){
value= g_player[pl]->m_government_type;
return TRUE;
}
else{
value=0;
return FALSE;
}
}
I'm open to suggestions for a better term than "govtdbind". In all the other builtins they used "type" to mean dbindex; but here they used "GovtType" to return a string.
|
|
|  |
 |
|
MrBaggins
|
|
Thanks Peter.
Why not change "GovtType" to "GovtType", by a search, then if its only used in that context, search and replace.
I'd suggest GovtStrType, maybe?
|
|
|  |
 |
|  |
All times are GMT. The time now is 05:33. Apolyton Time is 00:33. |
top of page
|
|
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|