Updated building queue and resource updater

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
Gregory PLANCHAT 2011-06-23 22:45:57 +02:00
commit 61abbb3900
9 changed files with 274 additions and 114 deletions

View file

@ -117,7 +117,7 @@ abstract class Legacies_Empire_Model_BuilderAbstract
$this->_queue = array();
}
abstract public function updateQueue($time = null);
abstract public function updateQueue($time);
abstract public function appendQueue($typeId, $qty, $time);
/**
@ -194,4 +194,28 @@ abstract class Legacies_Empire_Model_BuilderAbstract
{
reset($this->_queue);
}
public function getCurrentPlanet()
{
return $this->_currentPlanet;
}
public function getCurrentUser()
{
return $this->_currentUser;
}
public function setCurrentPlanet(Legacies_Empire_Model_Planet $planet)
{
$this->_currentPlanet = $planet;
return $this;
}
public function setCurrentUser(Legacies_Empire_Model_User $user)
{
$this->_currentUser = $user;
return $this;
}
}