we are a group of 3 students the project is atached our teacher canceled the midterm and added it do project because some people stole the questions we are in a tight sitation we are okay even for %50...

1 answer below »
we are a group of 3 students the project is atached our teacher canceled the midterm and added it do project because some people stole the questions we are in a tight sitation we are okay even for %50 points and i dont know what reffering style is so i choose a random one
Answered 8 days AfterMay 26, 2021

Answer To: we are a group of 3 students the project is atached our teacher canceled the midterm and added it do...

Kamal answered on Jun 04 2021
151 Votes
Player.h
#ifndef _PLAYER_
#define _PLAYER_
#include"LandCard.h"
#include"CreatureCard.h"
#include"EnchantmentCard.h"
#include"SorceryCard.h"
class Player

{
protected:
    int id;
    Card** cardArray;
public:
    Player(int, Card**);
    int getId();
    Card** getCardArray();
};
#endif
SorceryCard.cpp
SorceryCard.cpp
#include"SorceryCard.h"
sorceryCard::sorceryCard(string cardName, int cardNum) : Card(cardName, cardNum) {}
SorceryCard.h
#pragma once
#include"Card.h"
class sorceryCard : public Card
{
protected:
    string cardColor;
    string effect;
public:
    sorceryCard(string, int);
};
Card.cpp
Card.cpp
#include"Card.h"
Card::Card() {}
Card::Card(string _name, int _num)
{
    cardName->name = _name;
    cardName->num = _num;
}
string Card::getCardName() const
{
    return cardName->name;
}
int Card::getCardNum() const
{
    return cardName->num;
}
string Card::getManaCost() const
{
    return manaCost;
}
Card.h
#ifndef _CARD_
#define _CARD_
#include
using namespace std;
struct cardStruct
{
    string name;
    int num;
};
class Card
{
protected:
    struct cardStruct *cardName;
    string manaCost;
public:
    Card();
    Card(string, int);
    string getCardName() const;
    int getCardNum() const;
    string getManaCost() const;
    string getCardColor() const;
};
#endif
CreatureCard.cpp
CreatureCard.cpp
#include"CreatureCard.h"
creatureCard::creatureCard(string cardName, int cardNum) : Card(cardName, cardNum)
{
}
CreatureCard.h
#pragma once
#include"Card.h"
class creatureCard : public Card
{
protected:
    string cardColor;
    int...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here