一个C编写的足球机器人比赛程序
源代码在线查看: object.cpp
- #include "Object.h"
-
- void Object::setType(ObjectTypeT o)
- {
- objectType = o;
- }
-
- ObjectTypeT Object::getType() const
- {
- return objectType;
- }
-
- void Object::setPosition(VecPosition p)
- {
- pos = p;
- }
-
- VecPosition Object::getPosition() const
- {
- return pos;
- }
-
- void Object::setVelocity(VecPosition p)
- {
- vel = p;
- }
-
- VecPosition Object::getVelocity() const
- {
- return vel;
- }
#include "Object.h"
void Object::setType(ObjectTypeT o)
{
objectType = o;
}
ObjectTypeT Object::getType() const
{
return objectType;
}
void Object::setPosition(VecPosition p)
{
pos = p;
}
VecPosition Object::getPosition() const
{
return pos;
}
void Object::setVelocity(VecPosition p)
{
vel = p;
}
VecPosition Object::getVelocity() const
{
return vel;
}