Difference between revisions of "AGIWiki/Flag"

Jump to navigation Jump to search
2 bytes added ,  20:06, 21 February 2013
m
no edit summary
(Created page with "{{AGIWiki}} A '''flag''' is a boolean data type with exactly two possible values: set or not set (these can alternately be referred to as 0 for "not set" and 1 for "set", or as ...")
 
m
Line 1: Line 1:
{{AGIWiki}}
{{AGIWiki}}


A '''flag''' is a boolean data type with exactly two possible values: set or not set (these can alternately be referred to as 0 for "not set" and 1 for "set", or as true for "set" and false for "not set"). Flags are named by combining the prefix <code>f</code> with the number of the flag. There are 256 flags available in AGI, <code>f0</code> to <code>f255</code>. The flags <code>f0</code> to <code>f15</code> have [[AGIWiki/Special flags|special meaning] to the [[AGIWiki/Interpreter|interpreter]. You should not attempt to use these 16 flags for your own game data.
A '''flag''' is a boolean data type with exactly two possible values: set or not set (these can alternately be referred to as 0 for "not set" and 1 for "set", or as true for "set" and false for "not set"). Flags are named by combining the prefix <code>f</code> with the number of the flag. There are 256 flags available in AGI, <code>f0</code> to <code>f255</code>. The flags <code>f0</code> to <code>f15</code> have [[AGIWiki/Special flags|special meaning]] to the [[AGIWiki/Interpreter|interpreter]]. You should not attempt to use these 16 flags for your own game data.


Is is both possible and recommended to give your flags more meaningful names than a simple letter-number combination. This is possible using [[AGIWiki/Defines|defines]]. The [[AGIWiki/defines.txt|defines.txt]] file from the [[AGIWiki/AGI Studio Template Game|AGI Studio Template Game]] gives define names for the 16 special flags.
Is is both possible and recommended to give your flags more meaningful names than a simple letter-number combination. This is possible using [[AGIWiki/Defines|defines]]. The [[AGIWiki/defines.txt|defines.txt]] file from the [[AGIWiki/AGI Studio Template Game|AGI Studio Template Game]] gives define names for the 16 special flags.
885

edits

Navigation menu