personaje.cpp

来自「Game developed with C++ and ALLEGRO」· C++ 代码 · 共 26 行

CPP
26
字号
#include<iostream>
#include <cstdlib>
#include "Personaje.h"

using namespace std;

Personaje::Personaje(){
                       cout<<"Personaje sin paramteros"<<endl;                       
}

Personaje::~Personaje(){
                        cout<<"Destructor Personaje"<<endl;                        
}
void Personaje::setX(int x){
    posX=x;
}
void Personaje::setY(int y){
     posY=y;
}
int Personaje::getX(){
    return posX;
}
int Personaje::getY(){
     return posY;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?