Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: daverodal/webwargaming
base: 497f75988a
...
head fork: daverodal/webwargaming
compare: 77636001d9
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 25 additions and 0 deletions.
  1. +25 −0 NapOnMars.php
View
25 NapOnMars.php
@@ -46,6 +46,31 @@ static function playAs($wargame){
static function getView(){
@include_once "view.php";
}
+ public function resize($small,$player){
+ if($small){
+ $this->mapData[$player]->setData(44,60, // originX, originY
+ 20, 20, // top hexagon height, bottom hexagon height
+ 12, 24, // hexagon edge width, hexagon center width
+ 1410, 1410 // max right hexagon, max bottom hexagon
+ );
+ $this->playerData->${player}->mapWidth = "744px";
+ $this->playerData->${player}->mapHeight = "425px";
+ $this->playerData->${player}->unitSize = "32px";
+ $this->playerData->${player}->unitFontSize = "12px";
+ $this->playerData->${player}->unitMargin = "-21px";
+ }else{
+ $this->mapData[$player]->setData(57,84, // originX, originY
+ 28, 28, // top hexagon height, bottom hexagon height
+ 16, 32, // hexagon edge width, hexagon center width
+ 1410, 1410 // max right hexagon, max bottom hexagon
+ );
+ $this->playerData->${player}->mapWidth = "996px";
+ $this->playerData->${player}->mapHeight = "593px";
+ $this->playerData->${player}->unitSize = "42px";
+ $this->playerData->${player}->unitFontSize = "16px";
+ $this->playerData->${player}->unitMargin = "-23px";
+ }
+ }
function save()
{
$data = new stdClass();

No commit comments for this range

Something went wrong with that request. Please try again.