Last active
August 29, 2015 13:56
-
-
Save alyx/9048710 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <pokemon.h> | |
| int main(int argc, char **argv) | |
| { | |
| FILE *f; | |
| PkmnState s; | |
| int i; | |
| // Replicate Gen 1 | |
| s->IgnoreAbilities(true); | |
| for (i = 1; i < 151; i++) | |
| s->AllowPokemonByID(i); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <pokemon.h> | |
| void parse_file(PkmnState s, FILE *f) | |
| { | |
| ... | |
| if (value[0] == "MOVE") { | |
| s->move(value[0], value[1], value[5]); | |
| // move(name, hitpoints, etc); | |
| } | |
| } | |
| int main(int argc, char **argv) | |
| { | |
| FILE *f; | |
| PkmnState s; | |
| f = open(argv[1], "r"); | |
| parse_file(s, f); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment