shape.cpp

来自「S.C.O.U.R.G.E.是一款类似Rogue的游戏」· C++ 代码 · 共 41 行

CPP
41 行
字号
/***************************************************************************                          shape.cpp  -  description                             -------------------    begin                : Sat May 3 2003    copyright            : (C) 2003 by Gabor Torok    email                : cctorok@yahoo.com ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/#include "shape.h"Shape::Shape(int width, int depth, int height, char *name, int descriptionGroup){  this->width = width;  this->depth = depth;  this->height = height;  this->name = name;  this->descriptionGroup = descriptionGroup;  this->stencil = false;}Shape::Shape(Shape *shape) {  this->width = shape->getWidth();  this->depth = shape->getDepth();  this->height = shape->getHeight();  this->name = shape->getName();  this->descriptionGroup = shape->getDescriptionGroup();}Shape::~Shape(){}

⌨️ 快捷键说明

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