Card Game Problem

Page 1 of 1

2 Replies - 294 Views - Last Post: 23 August 2012 - 01:35 PM Rate Topic: -----

#1 JaoWolf  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 23-August 12

Card Game Problem

Posted 23 August 2012 - 01:29 PM

Hey guys, this is my first time posting here...

I would you like some ideas for the following situation. In a card game like pokémon, for example, suppose there is a class called OptionCard derived from another class Card. OptionCard is responsible for adding specific effects to the gaming scene. Instances of OptionCard obviously represent different cards with different effects, ie instructions that specify such an effect. Well, the question is: how can I do to create different instances of OptionCard where each of them have different effects? It's like a single member function of a class execute different effects according to their instances. Any idea?

Is This A Good Question/Topic? 0
  • +

Replies To: Card Game Problem

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9044
  • View blog
  • Posts: 33,951
  • Joined: 12-June 08

Re: Card Game Problem

Posted 23 August 2012 - 01:35 PM

Duplicate post.. closing.
Was This Post Helpful? 0
  • +
  • -

#3 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5464
  • View blog
  • Posts: 11,731
  • Joined: 02-June 10

Re: Card Game Problem

Posted 23 August 2012 - 01:35 PM

Please don't post duplicate threads.
This is the duplicate (higher number)
please post responses in the original thread:
http://www.dreaminco...d-game-problem/
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1