You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hyper-set/Source/Model/Card5.js

25 lines
674 B

// import('.Card');
class Card5 extends Card {
constructor(color, number, shape, filling, outline){
super(color,number,shape,filling);
if(!outline){
throw new EmptyParamaterException('Outline');
}
this.outline=outline;
}
/**
* @returns array of all attributes :
idx 1 : color
idx 2 : number
idx 3 : shape
idx 4 : filling
idx 5 : outline
* @author Bastien Jacquelin
*/
getAttributes(){
// return [this.color,this.number,this.shape,this.filling,this.outline];
return super.getAttributes().concat(this.outline);
}
}
// export {Card5};