str/apps/explorer/Block.cpp (23 lines of code) (raw):

#include"Block.h" #include<string.h> //コンストラクタ Block::Block(int num) { position = num; } //デストラクタ Block::~Block(){} void Block::setPosition(int nodeNum) { position = nodeNum; } void Block::setColor(BlockColor blockColor) { color = blockColor; } int Block::getPosition() { return position; } BlockColor Block::getBlockColor() { return color; }