This whole onCreate is for the mechanism of the Pokemon battle. It features multiple duplicated codes that could be extracted to a new class or method.
They violate the Single Responsibility Principle (SRP), which states that a method or function should have a single, well-defined responsibility.
Example 1
This whole onCreate is for the mechanism of the Pokemon battle. It features multiple duplicated codes that could be extracted to a new class or method.
They violate the Single Responsibility Principle (SRP), which states that a method or function should have a single, well-defined responsibility.