|
|
@@ -2,20 +2,6 @@ |
|
|
|
require_once "dbase.inc"; |
|
|
|
class game |
|
|
|
{ |
|
|
|
/* work with gamestates: |
|
|
|
- gamestate 0: set difficulty |
|
|
|
--> difficultyform |
|
|
|
- gamestate 1: play game |
|
|
|
--> startup game |
|
|
|
==> create ships |
|
|
|
==> set ammo |
|
|
|
--> shotForm |
|
|
|
==> submitbutton value |
|
|
|
--> showShotsLeft |
|
|
|
- gamestate 2: game finished |
|
|
|
--> finish off game |
|
|
|
--> submitbutton value |
|
|
|
*/ |
|
|
|
|
|
|
|
//properties |
|
|
|
protected $shipList = ['duikboot', 'torpedojager', 'kruiser', 'slagschip', 'vliegdekship']; |
|
|
@@ -28,7 +14,6 @@ class game |
|
|
|
public $ships; |
|
|
|
|
|
|
|
//methods |
|
|
|
//start instance class? |
|
|
|
protected function setDifficulty() |
|
|
|
{ |
|
|
|
if (isset($_POST['difficulty']) && $_POST['difficulty'] != "") { |