game_in_work_example

This commit is contained in:
unknown
2010-08-31 19:25:29 +04:00
parent d4a9f33816
commit bbb6f9b366
14 changed files with 363 additions and 404 deletions

View File

@@ -30,6 +30,7 @@ bool Towers::addTower(int playerId, int srcId, QPoint pos)
tw.build = 0;
tw.reload = 0;
tw.aim = -1;
tw.experience = 0;
//tw .oldAim = -1;
if (gameData->map->addTowerOnMap(playerId,pos))
{
@@ -96,6 +97,7 @@ void Towers::update()
if ((*i).aim > 0)
{
(*i).reload = 0;
(*i).experience += stw.expByShot;
emit shot((*i).pos);
//qDebug("shot!");
}