Private
Public Access
1
0

bugfix points saving and exploded bombs to db && you can resign #6

This commit is contained in:
2016-11-20 17:44:29 +01:00
parent 180c827380
commit 5a3ce73e40
8 changed files with 242 additions and 87 deletions

View File

@@ -87,16 +87,23 @@ class PlayedGame
/**
* @var boolean
*
* @ORM\Column(name="red_has_bomb", nullable=true)
* @ORM\Column(name="red_exploded_bomb", type="boolean", nullable=true)
*/
private $redHasBomb;
private $redExplodedBomb;
/**
* @var boolean
*
* @ORM\Column(name="blue_has_bomb", nullable=true)
* @ORM\Column(name="blue_exploded_bomb", type="boolean", nullable=true)
*/
private $blueHasBomb;
private $blueExplodedBomb;
/**
* @var string
*
* @ORM\Column(name="resign", type="string", length=7, nullable=true)
*/
private $resign;
/**
* @var Step
@@ -125,6 +132,30 @@ class PlayedGame
return $this->id;
}
/**
* Set gameAssoc
*
* @param string $gameAssoc
*
* @return PlayedGame
*/
public function setGameAssoc($gameAssoc)
{
$this->gameAssoc = $gameAssoc;
return $this;
}
/**
* Get gameAssoc
*
* @return string
*/
public function getGameAssoc()
{
return $this->gameAssoc;
}
/**
* Set redPoints
*
@@ -174,51 +205,51 @@ class PlayedGame
}
/**
* Set redHasBomb
* Set redExplodedBomb
*
* @param string $redHasBomb
* @param string $redExplodedBomb
*
* @return PlayedGame
*/
public function setRedHasBomb($redHasBomb)
public function setRedExplodedBomb($redExplodedBomb)
{
$this->redHasBomb = $redHasBomb;
$this->redExplodedBomb = $redExplodedBomb;
return $this;
}
/**
* Get redHasBomb
* Get redExplodedBomb
*
* @return string
*/
public function getRedHasBomb()
public function getRedExplodedBomb()
{
return $this->redHasBomb;
return $this->redExplodedBomb;
}
/**
* Set blueHasBomb
* Set blueExplodedBomb
*
* @param string $blueHasBomb
* @param string $blueExplodedBomb
*
* @return PlayedGame
*/
public function setBlueHasBomb($blueHasBomb)
public function setBlueExplodedBomb($blueExplodedBomb)
{
$this->blueHasBomb = $blueHasBomb;
$this->blueExplodedBomb = $blueExplodedBomb;
return $this;
}
/**
* Get blueHasBomb
* Get blueExplodedBomb
*
* @return string
*/
public function getBlueHasBomb()
public function getBlueExplodedBomb()
{
return $this->blueHasBomb;
return $this->blueExplodedBomb;
}
/**
@@ -376,26 +407,26 @@ class PlayedGame
}
/**
* Set gameAssoc
* Set resign
*
* @param string $gameAssoc
* @param string $resign
*
* @return PlayedGame
*/
public function setGameAssoc($gameAssoc)
public function setResign($resign)
{
$this->gameAssoc = $gameAssoc;
$this->resign = $resign;
return $this;
}
/**
* Get gameAssoc
* Get resign
*
* @return string
*/
public function getGameAssoc()
public function getResign()
{
return $this->gameAssoc;
return $this->resign;
}
}