@ -5,23 +5,23 @@ import {Classe} from "./Classe";
export class Card {
export class Card {
constructor ( id : number , name :string , set : CardSet , type : Type , clas : Classe , rarity : string , cost : number , attack : number , health : number , desc : string , flavor : string , artist : string , collectible : boolean , elite : boolean , race : string , img : string , imgGold : string , cropImg :string ) {
constructor ( id : number , name :string , img : string , imgGold : string ) { //,set : CardSet,type : Type,clas : Classe,rarity : string,cost : number,attack : number, health : number, desc : string,flavor : string,artist : string,collectible : boolean,elite : boolean,race : string, cropImg :string) {
this . _id = id
this . _id = id
this . _name = name
this . _name = name
this . _set = set
//this._set=set
this . _type = type
// this._type=type
this . _class = clas
// this._class=clas
this . _rarity = rarity
// this._rarity=rarity
this . _cost = cost
// this._cost=cost
this . _attack = attack
// this._attack = attack
this . _health = health
// this._health = health
this . _desc = desc
// this._desc = desc
this . _flavor = flavor
// this._flavor = flavor
this . _artist = artist
// this._artist = artist
this . _collectible = collectible
// this._collectible = collectible
this . _img = img
this . _img = img
this . _imgGold = imgGold
this . _imgGold = imgGold
this . _cropImg = cropImg
// this._cropImg = cropImg
}
}
@ -42,94 +42,94 @@ export class Card {
}
}
private _set : CardSet ;
// private _set : CardSet;
get set ( ) : CardSet {
// get set(): CardSet{
return this . _set
// return this._set
}
// }
set set ( value : CardSet ) {
// set set(value : CardSet){
this . _set = value
// this._set = value
}
// }
private _type : Type ;
// private _type : Type;
get type ( ) : Type {
// get type():Type{
return this . _type
// return this._type
}
// }
set type ( value : Type ) {
// set type(value : Type){
this . _type = value
// this._type=value
}
// }
private _class : Classe ;
// private _class : Classe;
get class ( ) : Classe {
// get class():Classe{
return this . _class
// return this._class
}
// }
set class ( value : Classe ) {
// set class(value : Classe){
this . _class = value
// this._class=value
}
// }
private _rarity : string
// private _rarity : string
get rarity ( ) : string {
// get rarity(): string {
return this . _rarity ;
// return this._rarity;
}
// }
set rarity ( value : string ) {
// set rarity(value: string) {
this . _rarity = value ;
// this._rarity = value ;
}
// }
private _cost : number
// private _cost : number
get cost ( ) : number {
// get cost(): number {
return this . _cost ;
// return this._cost;
}
// }
set cost ( value : number ) {
// set cost(value: number) {
this . _cost = value ;
// this._cost = value ;
}
// }
private _attack : number
// private _attack : number
get attack ( ) : number {
// get attack(): number {
return this . _attack ;
// return this._attack;
}
// }
set attack ( value : number ) {
// set attack(value: number) {
this . _attack = value ;
// this._attack = value ;
}
// }
private _health : number
// private _health : number
get health ( ) : number {
// get health(): number {
return this . _health ;
// return this._health;
}
// }
set health ( value : number ) {
// set health(value: number) {
this . _health = value ;
// this._health = value ;
}
// }
private _desc : string
// private _desc : string
get desc ( ) : string {
// get desc(): string {
return this . _desc ;
// return this._desc;
}
// }
set desc ( value : string ) {
// set desc(value: string) {
this . _desc = value ;
// this._desc = value ;
}
// }
private _flavor : string
// private _flavor : string
get flavor ( ) : string {
// get flavor(): string {
return this . _flavor ;
// return this._flavor;
}
// }
set flavor ( value : string ) {
// set flavor(value: string) {
this . _flavor = value ;
// this._flavor = value ;
}
// }
private _artist : string
// private _artist : string
get artist ( ) : string {
// get artist(): string {
return this . _artist ;
// return this._artist;
}
// }
set artist ( value : string ) {
// set artist(value: string) {
this . _artist = value ;
// this._artist = value ;
}
// }
private _collectible : boolean
// private _collectible : boolean
get collectible ( ) : boolean {
// get collectible(): boolean {
return this . _collectible ;
// return this._collectible;
}
// }
set collectible ( value : boolean ) {
// set collectible(value: boolean ){
this . _collectible = value ;
// this._collectible = value;
}
// }
private _img : string
private _img : string
@ -147,12 +147,12 @@ export class Card {
set imgGold ( value : string ) {
set imgGold ( value : string ) {
this . _imgGold = value ;
this . _imgGold = value ;
}
}
private _cropImg : string
// private _cropImg : string
get cropImg ( ) : string {
// get cropImg(): string {
return this . _cropImg ;
// return this._cropImg;
}
// }
set cropImg ( value : string ) {
// set cropImg(value: string) {
this . _cropImg = value ;
// this._cropImg = value;
}
// }
}
}