Skip to content

Commit

Permalink
2.0 Official Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Harinlen committed Jun 8, 2015
1 parent 7af2ca2 commit 6983385
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
Empty file modified enemyaddwidget.cpp
100644 → 100755
Empty file.
Empty file modified enemyaddwidget.h
100644 → 100755
Empty file.
3 changes: 3 additions & 0 deletions generateground.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ GenerateGround::GenerateGround(QWidget *parent) :
setWindowFlags(Qt::Sheet);
#endif

m_previewer->setShowPreviewEnemy(false);
m_previewer->setShowPreviewPoint(false);

//Link the previewer.
connect(m_borderEditor, &PolygonEditor::polygonChange,
m_previewer, &GroundPreviewer::setPreviewBorder);
Expand Down
5 changes: 5 additions & 0 deletions ground.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,7 @@ void Ground::clearGroundData()
qDeleteAll(m_enemyList);
m_enemyList.clear();
m_enemyInitialPosition.clear();
Enemy::setMissionComplete(false);
Enemy::setTarget(QPointF(0,0));
//Reset the counters.
m_reachBorderCount=0;
Expand Down Expand Up @@ -1017,6 +1018,8 @@ void Ground::addRobots(const QList<Robot *> &robots)
{
addRobot(*i);
}
//Update the minimum robot conut.
m_minimumMoveEnemyCount=0.8*(qreal)m_robotList.size();
}

bool Ground::addEnemy(Enemy *enemy)
Expand Down Expand Up @@ -1104,6 +1107,8 @@ void Ground::syncRobotData(const QList<Robot *> &robots,
m_robotList=robots;
m_robotInitialPosition=initialPosition;
m_robotInitialAngle=initialAngle;
//Update the minimum robot conut.
m_minimumMoveEnemyCount=0.8*(qreal)m_robotList.size();
//Set the change flag.
m_changed=true;
//Reset the ground.
Expand Down
Empty file modified groundpreviewer.cpp
100644 → 100755
Empty file.

0 comments on commit 6983385

Please sign in to comment.