Thread: [Discussion] Interest in a Java Pokemon API?
View Single Post
Old March 3rd, 2013 (9:11 AM).
Atheriel's Avatar
Atheriel Atheriel is offline
    Join Date: Feb 2013
    Posts: 16
    Originally Posted by FL . View Post
    I believe that the best way is to do something like Essentials.

    For moves you can extends the function code main class (PokeBattle_Move, that isn't abstract or interface) and use function codes, a good use of OOP polymorphism. This can be done using a factory method that dinamically instanciate the classes as reading the move data, this can be done with reflection API.
    I'm very much in favour of including factories, I just haven't written them yet. I don't think reflection will be necessary for the basic ones, either, although I'm currently making use of it to keep track of the instantiated types.

    Originally Posted by FL . View Post
    A side note: I have experience with Ruby/Java/Essentials.
    I get the impression from your knowledge of reflection...

    If you're at all interested in contributing, feel free to look at the project source and submit an issue/request, or pm me on the forums with suggestions!
    Reply With Quote