Your browser must have JavaScript enabled in order to view this page.
 >  >
 
Welcome Guest#213 Login/register    Go to Bottom
Go to Top

Source for file shopkeeper.php

Documentation is available at shopkeeper.php

  1. <?php
  2. /**
  3.  * 'Shopkeeper' class to create a shopkeeper
  4.  *
  5.  * DutchPIPE version 0.4; PHP version 5
  6.  *
  7.  * LICENSE: This source file is subject to version 1.0 of the DutchPIPE license.
  8.  * If you did not receive a copy of the DutchPIPE license, you can obtain one at
  9.  * http://dutchpipe.org/license/1_0.txt or by sending a note to
  10.  * license@dutchpipe.org, in which case you will be mailed a copy immediately.
  11.  *
  12.  * @package    DutchPIPE
  13.  * @subpackage dpuniverse_npc
  14.  * @author     Lennert Stock <ls@dutchpipe.org>
  15.  * @copyright  2006, 2007 Lennert Stock
  16.  * @license    http://dutchpipe.org/license/1_0.txt  DutchPIPE License
  17.  * @version    Subversion: $Id: shopkeeper.php 308 2007-09-02 19:18:58Z ls $
  18.  * @link       http://dutchpipe.org/manual/package/DutchPIPE
  19.  * @see        DpNpc
  20.  */
  21.  
  22. /**
  23.  * Builts upon the standard DpNpc class
  24.  */
  25. inherit(DPUNIVERSE_STD_PATH 'DpNpc.php');
  26.  
  27. /**
  28.  * Gets event constants
  29.  */
  30. inherit(DPUNIVERSE_INCLUDE_PATH 'events.php');
  31.  
  32. /**
  33.  * A shopkeeper
  34.  *
  35.  * @package    DutchPIPE
  36.  * @subpackage dpuniverse_npc
  37.  * @author     Lennert Stock <ls@dutchpipe.org>
  38.  * @copyright  2006, 2007 Lennert Stock
  39.  * @license    http://dutchpipe.org/license/1_0.txt  DutchPIPE License
  40.  * @version    Release: 0.2.1
  41.  * @link       http://dutchpipe.org/manual/package/DutchPIPE
  42.  * @see        DpNpc
  43.  */
  44. final class Shopkeeper extends DpNpc
  45. {
  46.     /**
  47.      * Sets up the NPC at object creation time
  48.      */
  49.     public function createDpNpc()
  50.     {
  51.         // Standard setup calls:
  52.         $this->addId(explode('#'dp_text('shopkeeper')));
  53.         $this->title dp_text('shopkeeper');
  54.         $this->titleDefinite dp_text('the shopkeeper');
  55.         $this->titleIndefinite dp_text('a shopkeeper');
  56.         $this->titleImg DPUNIVERSE_IMAGE_URL 'shopkeeper.gif';
  57.         $this->titleImgWidth 58;
  58.         $this->titleImgHeight 100;
  59.         $this->body '<img src="' DPUNIVERSE_IMAGE_URL
  60.             . 'shopkeeper_body.gif" width="115" height="200" border="0" alt="" '
  61.             . 'align="left" style="margin-right: 15px" />'
  62.             . dp_text('A shopkeeper selling and buying items.<br />');
  63.     }
  64. }
  65. ?>

Documentation generated on Mon, 03 Sep 2007 22:22:27 +0200 by phpDocumentor 1.3.0RC6

Click me!
Guest#213
 
 
 
  Go to Top
 
 
Input Field OptionsClose Input Field Go to Top
 
Legal Notices | Copyright © 2006, 2007 Lennert Stock. All rights reserved. Last update: Mon Sep 03 2007, 21:50 CET.