ETrobocon2017 - 片山研究所モデルベース開発推進事業部
str
apps
include
Block.h
[詳解]
1
#ifndef _INC_BLOCK
2
#define _INC_BLOCK
3
4
#include <cstdlib>
5
6
#include "
BlockColor.h
"
7
8
9
class
Block
{
10
private
:
11
int
position;
12
BlockColor
color;
13
14
public
:
15
Block
() =
default
;
16
Block
(
int
nodeNum);
17
void
setPosition
(
int
nodeNum);
18
void
setColor
(
BlockColor
blockColor);
19
int
getPosition
();
20
BlockColor
getBlockColor
();
21
~Block
();
22
};
23
24
#endif //INC_BLOCK
Block::getPosition
int getPosition()
Definition:
Block.cpp:24
Block::~Block
~Block()
Definition:
Block.cpp:12
BlockColor
BlockColor
Definition:
BlockColor.h:5
Block::Block
Block()=default
Block::setColor
void setColor(BlockColor blockColor)
Definition:
Block.cpp:19
Block
Definition:
Block.h:9
Block::setPosition
void setPosition(int nodeNum)
Definition:
Block.cpp:14
Block::getBlockColor
BlockColor getBlockColor()
Definition:
Block.cpp:29
BlockColor.h
構築:
1.8.13