Hi all,

I've been following the various discussions about having to clearly mark
OGC where it appear.

My question is, if I decided to code a Open Source game, that was
distributed ONLY in source code form. and that it followed the following
criteria for EVERY file.

/* Any OGC content in this product is identified as anything
   appearing between a [OGC] marker and the corresponding [/OGC]
   marker.

   For example in the paragraph above, "marker and the corresponding"
   is declared as open gaming content.
*/


void main( void ){
/* [OGC] */
int str;
int dex;
int ac;
int hit;
/* [/OGC] */

....loads of normal code here....

hit = rollToHit();
}

/* [OGC] */
int rollToHit(void){
  if (player is Paladin){
   ....more code....   
  }

  if (player using spell "FIREBALL"){

  ....more code....

  }
}
/* [/OGC] */


Would there be any problems? Since the only way I am distributing this
game would be in source code form, and when read it is clear what is and
what is not OGC.


How about with the following


/* [OGC] */
#define FIRE_SPELL = "FIREBALL"
#define PLAYERCLASSES = ("CLERIC", "DRUID", "RANGER");
/* [/OGC] */

#define ACLR 0
#define ADRD 1
#define ARNG 2

void immuneToSpell( string Spell ){
  if (Spell == FIRE_SPELL){
    if (Player is a PLAYERCLASSES[2])
      PLAYER IS IMMUNE;
  }
  else PLAYER IS NOT IMMUNE;
}


My point with the 2nd example is that although I'm declaring FIRE_SPELL
as OGC, since it is a name I've invented am I still allowed to use it as
none OGC as well? Since its mine? If so this allows me to seperate OGC
from the code by referring to the OGC through aliases in the code. But
still allowing users to clearly see what is and is not OGC?

Any flaws in this? I'm sure there are, and if there are flaws, how would
you recommend fixing them?

PS the code above is not from a specific language, but the general idea
of what its doing for the purposes of the example should be clear
enough, i hope:P

Cheers,

Gary.

_______________________________________________
Ogf-l mailing list
[EMAIL PROTECTED]
http://mail.opengamingfoundation.org/mailman/listinfo/ogf-l

Reply via email to