Thread: [Discussion] Interest in a Java Pokemon API?
View Single Post
  #39    
Old March 3rd, 2013 (09:11 AM).
Atheriel's Avatar
Atheriel Atheriel is offline
 
Join Date: Feb 2013
Posts: 16
Quote originally posted by FL .:
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.

Quote originally posted by FL .:
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