Login   Register  
PHP Classes
elePHPant
Icontem

File: tests/runnable/cases/Htechs.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of jstar88  >  OPBE  >  tests/runnable/cases/Htechs.php  >  Download  
File: tests/runnable/cases/Htechs.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: OPBE
Ogame probabilistic battle engine
Author: By
Last change:
Date: 2014-02-01 16:43
Size: 1,510 bytes
 

Contents

Class file image Download
<?php

/**
 *  OPBE
 *  Copyright (C) 2013  Jstar
 *
 * This file is part of OPBE.
 * 
 * OPBE is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * OPBE is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with OPBE.  If not, see <http://www.gnu.org/licenses/>.
 *
 * @package OPBE
 * @author Jstar <frascafresca@gmail.com>
 * @copyright 2013 Jstar <frascafresca@gmail.com>
 * @license http://www.gnu.org/licenses/ GNU AGPLv3 License
 * @version beta(26-10-2013)
 * @link https://github.com/jstar88/opbe
 */
require ("../../RunnableTest.php");
class 
Htechs extends RunnableTest
{
    public function 
getAttachers()
    {
        
$fleet = new Fleet(1,array($this->getShipType(207400)));
        
$player = new Player(1, array($fleet),16,16,16);
        return new 
PlayerGroup(array($player));
    }
    public function 
getDefenders()
    {
        
$fleet = new Fleet(2,array($this->getShipType(215300)));
        
$player = new Player(2, array($fleet),16,16,16);
        return new 
PlayerGroup(array($player));
    }
}
new 
Htechs(true);


?>