Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
155 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
<?PHP | ||
require_once '../Weapon.class.php'; | ||
require_once '../SpaceShip.class.php'; | ||
require_once 'MultipleLaser.class.php'; | ||
|
||
class ImperialDestroyer extends SpaceShip { | ||
|
||
function __construct () { | ||
$this->_name = "Imperial Destroyer"; | ||
$this->_sprite = "ImperialDestroyer.png") | ||
$this->_size = new array(3, 1); | ||
$this->_sprite = "ImperialDestroyer.png"; | ||
$this->_size = array(3, 1); | ||
$this->_power = 10; | ||
$this->_resistance = 4; | ||
$this->_weight = 4; | ||
$this->_speed = 18; | ||
$this->_weapons = array( new MultipleLaser() ); | ||
} | ||
} | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
<?PHP | ||
require_once '../Weapon.class.php'; | ||
require_once '../SpaceShip.class.php'; | ||
require_once 'MultipleLaser.class.php'; | ||
|
||
class ImperialFregate extends SpaceShip { | ||
|
||
function __construct () { | ||
$this->_name = "Imperial Fregate"; | ||
$this->_size = new array(4, 1); | ||
$this->_size = array(4, 1); | ||
$this->_power = 10; | ||
$this->_resistance = 5; | ||
$this->_weight = 4; | ||
$this->_speed = 15; | ||
$this->_weapons = array( new MultipleLaser() ); | ||
} | ||
} | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?PHP | ||
require_once './class/Game.class.php'; | ||
session_start(); | ||
if (count($_SESSION) == 0) { | ||
$game = new Game(); | ||
$_SESSION['party_id'] = $game->getId(); | ||
$game->save(); | ||
} else { | ||
header('Location: game.php'); | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.