bugfix points saving and exploded bombs to db && you can resign #6
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace Mine\SeekerBundle\Entity;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
/**
|
||||
@@ -78,4 +79,38 @@ class Grid
|
||||
{
|
||||
return $this->playedGame;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add gridRow
|
||||
*
|
||||
* @param GridRow $gridRow
|
||||
*
|
||||
* @return Grid
|
||||
*/
|
||||
public function addGridRow(GridRow $gridRow)
|
||||
{
|
||||
$this->gridRow[] = $gridRow;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove gridRow
|
||||
*
|
||||
* @param GridRow $gridRow
|
||||
*/
|
||||
public function removeGridRow(GridRow $gridRow)
|
||||
{
|
||||
$this->gridRow->removeElement($gridRow);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gridRow
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function getGridRow()
|
||||
{
|
||||
return $this->gridRow;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -374,28 +405,4 @@ class PlayedGame
|
||||
{
|
||||
return $this->step;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user