diff options
Diffstat (limited to 'doxygen/html/pirate3_8py_source.html')
-rw-r--r-- | doxygen/html/pirate3_8py_source.html | 149 |
1 files changed, 0 insertions, 149 deletions
diff --git a/doxygen/html/pirate3_8py_source.html b/doxygen/html/pirate3_8py_source.html deleted file mode 100644 index 99122bc..0000000 --- a/doxygen/html/pirate3_8py_source.html +++ /dev/null @@ -1,149 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> -<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> -<title>Cmd2: /Users/amrogers/Developer/Projects/cmd2/docs/pycon2010/pirate3.py Source File</title> - -<link href="tabs.css" rel="stylesheet" type="text/css"/> -<link href="doxygen.css" rel="stylesheet" type="text/css" /> -<link href="navtree.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="jquery.js"></script> -<script type="text/javascript" src="resize.js"></script> -<script type="text/javascript" src="navtree.js"></script> -<script type="text/javascript"> - $(document).ready(initResizable); -</script> -<link href="search/search.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="search/search.js"></script> -<script type="text/javascript"> - $(document).ready(function() { searchBox.OnSelectItem(0); }); -</script> - -</head> -<body> -<div id="top"><!-- do not remove this div! --> - - -<div id="titlearea"> -<table cellspacing="0" cellpadding="0"> - <tbody> - <tr style="height: 56px;"> - - - <td style="padding-left: 0.5em;"> - <div id="projectname">Cmd2 - - </div> - - </td> - - - - </tr> - </tbody> -</table> -</div> - -<!-- Generated by Doxygen 1.7.5.1 --> -<script type="text/javascript"> -var searchBox = new SearchBox("searchBox", "search",false,'Search'); -</script> - <div id="navrow1" class="tabs"> - <ul class="tablist"> - <li><a href="index.html"><span>Main Page</span></a></li> - <li><a href="namespaces.html"><span>Packages</span></a></li> - <li><a href="annotated.html"><span>Classes</span></a></li> - <li class="current"><a href="files.html"><span>Files</span></a></li> - <li><a href="dirs.html"><span>Directories</span></a></li> - <li> - <div id="MSearchBox" class="MSearchBoxInactive"> - <span class="left"> - <img id="MSearchSelect" src="search/mag_sel.png" - onmouseover="return searchBox.OnSearchSelectShow()" - onmouseout="return searchBox.OnSearchSelectHide()" - alt=""/> - <input type="text" id="MSearchField" value="Search" accesskey="S" - onfocus="searchBox.OnSearchFieldFocus(true)" - onblur="searchBox.OnSearchFieldFocus(false)" - onkeyup="searchBox.OnSearchFieldChange(event)"/> - </span><span class="right"> - <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> - </span> - </div> - </li> - </ul> - </div> - <div id="navrow2" class="tabs2"> - <ul class="tablist"> - <li><a href="files.html"><span>File List</span></a></li> - </ul> - </div> -</div> -<div id="side-nav" class="ui-resizable side-nav-resizable"> - <div id="nav-tree"> - <div id="nav-tree-contents"> - </div> - </div> - <div id="splitbar" style="-moz-user-select:none;" - class="ui-resizable-handle"> - </div> -</div> -<script type="text/javascript"> - initNavTree('pirate3_8py.html',''); -</script> -<div id="doc-content"> -<div class="header"> - <div class="headertitle"> -<div class="title">pirate3.py</div> </div> -</div> -<div class="contents"> -<a href="pirate3_8py.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a><a class="code" href="namespacepirate3.html">00001</a> <span class="keyword">from</span> cmd <span class="keyword">import</span> Cmd -<a name="l00002"></a>00002 <span class="comment"># using hook</span> -<a name="l00003"></a>00003 -<a name="l00004"></a><a class="code" href="classpirate3_1_1Pirate.html">00004</a> <span class="keyword">class </span><a class="code" href="classpirate3_1_1Pirate.html">Pirate</a>(Cmd): -<a name="l00005"></a><a class="code" href="classpirate3_1_1Pirate.html#aa49bab8d18e2f2995e0da7c10c0258da">00005</a> gold = 3 -<a name="l00006"></a><a class="code" href="classpirate3_1_1Pirate.html#a3b73e9898e220e5d1cff5c042a515359">00006</a> <span class="keyword">def </span><a class="code" href="classpirate3_1_1Pirate.html#a3b73e9898e220e5d1cff5c042a515359">do_loot</a>(self, arg): -<a name="l00007"></a>00007 <span class="stringliteral">'Seize booty from a passing ship.'</span> -<a name="l00008"></a>00008 self.<a class="code" href="classpirate3_1_1Pirate.html#aa49bab8d18e2f2995e0da7c10c0258da">gold</a> += 1 -<a name="l00009"></a><a class="code" href="classpirate3_1_1Pirate.html#ae62063bde0baa286f8b765b010368269">00009</a> <span class="keyword">def </span><a class="code" href="classpirate3_1_1Pirate.html#ae62063bde0baa286f8b765b010368269">do_drink</a>(self, arg): -<a name="l00010"></a>00010 <span class="stringliteral">'Drown your sorrrows in rrrum.'</span> -<a name="l00011"></a>00011 self.<a class="code" href="classpirate3_1_1Pirate.html#aa49bab8d18e2f2995e0da7c10c0258da">gold</a> -= 1 -<a name="l00012"></a><a class="code" href="classpirate3_1_1Pirate.html#add2ad52765a4d67af64e8ce160c656a3">00012</a> <span class="keyword">def </span><a class="code" href="classpirate3_1_1Pirate.html#add2ad52765a4d67af64e8ce160c656a3">precmd</a>(self, line): -<a name="l00013"></a>00013 self.<a class="code" href="classpirate3_1_1Pirate.html#a9fbdf2c85171048564a53b367bbf3fcd">initial_gold</a> = self.<a class="code" href="classpirate3_1_1Pirate.html#aa49bab8d18e2f2995e0da7c10c0258da">gold</a> -<a name="l00014"></a>00014 <span class="keywordflow">return</span> line -<a name="l00015"></a><a class="code" href="classpirate3_1_1Pirate.html#ae8f5db310998d98093ac0471dd2dae81">00015</a> <span class="keyword">def </span><a class="code" href="classpirate3_1_1Pirate.html#ae8f5db310998d98093ac0471dd2dae81">postcmd</a>(self, stop, line): -<a name="l00016"></a>00016 <span class="keywordflow">if</span> self.<a class="code" href="classpirate3_1_1Pirate.html#aa49bab8d18e2f2995e0da7c10c0258da">gold</a> != self.<a class="code" href="classpirate3_1_1Pirate.html#a9fbdf2c85171048564a53b367bbf3fcd">initial_gold</a>: -<a name="l00017"></a>00017 print(<span class="stringliteral">'Now we gots {0} doubloons'</span> -<a name="l00018"></a>00018 .format(self.<a class="code" href="classpirate3_1_1Pirate.html#aa49bab8d18e2f2995e0da7c10c0258da">gold</a>)) -<a name="l00019"></a>00019 -<a name="l00020"></a><a class="code" href="namespacepirate3.html#a4f8be00ef380d4fa4ead52dd857b34e5">00020</a> pirate = <a class="code" href="classpirate3_1_1Pirate.html">Pirate</a>() -<a name="l00021"></a>00021 pirate.cmdloop() -</pre></div></div> -</div> - <div id="nav-path" class="navpath"> - <ul> - <li class="navelem"><a class="el" href="pirate3_8py.html">pirate3.py</a> </li> -<!-- window showing the filter options --> -<div id="MSearchSelectWindow" - onmouseover="return searchBox.OnSearchSelectShow()" - onmouseout="return searchBox.OnSearchSelectHide()" - onkeydown="return searchBox.OnSearchSelectKey(event)"> -<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a></div> - -<!-- iframe showing the search results (closed by default) --> -<div id="MSearchResultsWindow"> -<iframe src="javascript:void(0)" frameborder="0" - name="MSearchResults" id="MSearchResults"> -</iframe> -</div> - - - <li class="footer">Generated on Fri Sep 9 2011 10:50:47 for Cmd2 by - <a href="http://www.doxygen.org/index.html"> - <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li> - </ul> - </div> - - -</body> -</html> |