📄 goalkeeper.cpp
字号:
#include<iostream.h>
#include<iomanip.h>
#include"employee.h"
#include"player.h"
#include"goalkeeper.h"
goalkeeper::goalkeeper(const int a,const double e,const char*n,const int stre,
const int pac,const int jum,const int agi,const int acc,
const int sta,const int bal,const int hei,const int tea,
const int wor,const int det,const int cre,const int bra,
const int pos,int ref,int han,int a_a,int thr,int o_o):player(a,e,n,
stre,pac,jum,agi,acc,sta,bal,tea,wor,det,cre,bra,pos,hei)
{
reflexes=ref;
handing=han;
aerial_ability=a_a;
throwing=thr;
one_on_ones=o_o;
}
const int goalkeeper::getreflexes()const
{return reflexes;}
const int goalkeeper::gethanding()const
{return handing;}
const int goalkeeper::getaerial_ability()const
{return aerial_ability;}
const int goalkeeper::getthrowing()const
{return throwing;}
const int goalkeeper::getone_on_ones()const
{return one_on_ones;}
void goalkeeper::print()const
{
cout<<"守门员:"<<endl;
player::print();
cout<<endl;
cout<<"技术数据:"<<endl;
cout<<"反应:"<<reflexes<<"\t手控球"<<handing
<<"\t制空能力:"<<aerial_ability<<"\t大力抛球:"<<throwing
<<"\t一对一:"<<one_on_ones<<endl;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -