summaryrefslogtreecommitdiff
path: root/ia.c
AgeCommit message (Collapse)Author
2015-01-11coding rules: stop at 78 colsrewriteOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-01-09handle the different type of targetsOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-01-09replace the code of the artificial "intellligence"Olivier Gayot
the new function of the AI chooses a random target in the adversary team and use "attack" on it. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-01-07use a team / character model instead of an array of personnagesOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2015-01-07replaced function inverse() by macroOlivier Gayot
There was multiple problems with this function: void inverse(int *bool); First, we use "bool", which is actually a standard type, as the identifier. Then, we cannot pass different types to the function without cast. Then, inverse is not a meaninful name. At last, we have to pass the address of the variable we want to inverse. Fixed all these points by replacing the function by a macro : #define inverse_boolean(_b) /* impl */ Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2014-10-26game: remove useless checksOlivier Gayot
it is safe to pass a null pointer to SDL_FreeSurface() BTW: change the format of the files from dos to unix Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
2014-10-26game: Add a buildable version of the agmeOlivier Gayot
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>