Design pattern for skills implementation

Hi,

Somebody know what is the best design pattern for skills implementation? On the basis of skill consist of:

  • Target (player or enemy - player for heal etc. skills)
  • Inflicted damage and damage multipler
  • Animation to play
  • etc…
  • etc…
    I’m thinking about composite or prototype, but don’t know for sure :/. Maybe is some other design pattern, better for this?

Thanks for all helps :).

Almost certainly composition. Possibly decorator (e.g., additional bonuses), command (e.g., how skills are triggered), and state (how skills are executed over time). In practice, implementation of complex things like skills span several patterns.

Thank you for quick and very valuable replay! You helped me a lot with this answer!