<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_12) on Thu Oct 29 17:02:03 NZDT 2009 -->
<TITLE>
Evolution.Animal
</TITLE>
<META NAME="date" CONTENT="2009-10-29">
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Evolution.Animal";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Evolution.Animal.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="Evolution.Action.html" title="enum in <Unnamed>"><B>PREV CLASS</B></A>
<A HREF="Evolution.Drawable.html" title="class in <Unnamed>"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="index.html?Evolution.Animal.html" target="_top"><B>FRAMES</B></A>
<A HREF="Evolution.Animal.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
Class Evolution.Animal</H2>
<PRE>
java.lang.Object
<IMG SRC="./resources/inherit.gif" ALT="extended by "><A HREF="Evolution.Drawable.html" title="class in <Unnamed>">Evolution.Drawable</A>
<IMG SRC="./resources/inherit.gif" ALT="extended by "><B>Evolution.Animal</B>
</PRE>
<DL>
<DT><B>Enclosing class:</B><DD><A HREF="Evolution.html" title="class in <Unnamed>">Evolution</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>private class <B>Evolution.Animal</B><DT>extends <A HREF="Evolution.Drawable.html" title="class in <Unnamed>">Evolution.Drawable</A></DL>
</PRE>
<P>
Class for an animal
<P>
<P>
<DL>
<DT><B>Author:</B></DT>
<DD>Townsend</DD>
<DT><B>See Also:</B><DD><A HREF="Evolution.Drawable.html" title="class in <Unnamed>"><CODE>Evolution.Drawable</CODE></A></DL>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="Evolution.Action.html" title="enum in <Unnamed>">Evolution.Action</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#actions">actions</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#actionsCanEvolve">actionsCanEvolve</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> long</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#born">born</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#bundle">bundle</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> long</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#childrenSpawned">childrenSpawned</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#colour">colour</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#colourAlignment">colourAlignment</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#colourAlignmentCanEvolve">colourAlignmentCanEvolve</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#colourCanEvolve">colourCanEvolve</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="Evolution.Action.html" title="enum in <Unnamed>">Evolution.Action</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#currentAction">currentAction</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#direction">direction</A></B></CODE>
<BR>
Direction in radians</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.Double</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#directionAltered">directionAltered</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#generation">generation</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> long</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#kills">kills</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#life">life</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#rand">rand</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#randomizeChildren">randomizeChildren</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#rateOfEvolution">rateOfEvolution</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#rateOfEvolutionCanEvolve">rateOfEvolutionCanEvolve</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#sight">sight</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#sightCanEvolve">sightCanEvolve</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#sightFactor">sightFactor</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#spawnCanEvolve">spawnCanEvolve</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#spawnChildren">spawnChildren</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#spawnLife">spawnLife</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> long</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#spawns">spawns</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#species">species</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#speed">speed</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#speedCanEvolve">speedCanEvolve</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#speedFactor">speedFactor</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#spriteCanEvolve">spriteCanEvolve</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#stopped">stopped</A></B></CODE>
<BR>
</TD>
</TR>
</TABLE>
<A NAME="fields_inherited_from_class_Evolution.Drawable"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from class <A HREF="Evolution.Drawable.html" title="class in <Unnamed>">Evolution.Drawable</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="Evolution.Drawable.html#id">id</A>, <A HREF="Evolution.Drawable.html#positionX">positionX</A>, <A HREF="Evolution.Drawable.html#positionY">positionY</A>, <A HREF="Evolution.Drawable.html#sprite">sprite</A></CODE></TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="Evolution.Animal.html#Evolution.Animal()">Evolution.Animal</A></B>()</CODE>
<BR>
Constructor, sets default locations, sprite, actions, statistics</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#calculateKill()">calculateKill</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#calculateReaction()">calculateReaction</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private int[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#defaultSprite()">defaultSprite</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#die()">die</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#drawSprite(int, int, int[])">drawSprite</A></B>(int x,
int y,
int[] image)</CODE>
<BR>
Draw the sprite at the specified position.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#eat(Evolution.Plant)">eat</A></B>(<A HREF="Evolution.Plant.html" title="class in <Unnamed>">Evolution.Plant</A> p)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#getDirection()">getDirection</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.Double</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#getDirectionAltered()">getDirectionAltered</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#getPositionX()">getPositionX</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#getPositionY()">getPositionY</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#getSight()">getSight</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#getSpeed()">getSpeed</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#getSprite()">getSprite</A></B>()</CODE>
<BR>
Getter for the sprite (can be overridden)</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#isFriendlyTo(Evolution.Animal)">isFriendlyTo</A></B>(<A HREF="Evolution.Animal.html" title="class in <Unnamed>">Evolution.Animal</A> a)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#live()">live</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#move()">move</A></B>()</CODE>
<BR>
Moves a sprite to it's next position, based on direction and speed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private double</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#rand()">rand</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="Evolution.Hazard.html" title="class in <Unnamed>">Evolution.Hazard</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#scanForAHazard()">scanForAHazard</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="Evolution.Plant.html" title="class in <Unnamed>">Evolution.Plant</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#scanForAPlant()">scanForAPlant</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#scanForHazards(double, double)">scanForHazards</A></B>(double dX,
double dY)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#scanForPlants()">scanForPlants</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#setDirection(int)">setDirection</A></B>(int direction)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#setDirectionAltered(java.lang.Double)">setDirectionAltered</A></B>(java.lang.Double directionNew)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#setPositionX(double)">setPositionX</A></B>(double positionX)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#setPositionX(int)">setPositionX</A></B>(int positionX)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#setPositionY(double)">setPositionY</A></B>(double positionY)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#setPositionY(int)">setPositionY</A></B>(int positionY)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#spawn()">spawn</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#toString()">toString</A></B>()</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#whoCanISee(java.util.ArrayList, java.util.ArrayList)">whoCanISee</A></B>(java.util.ArrayList<<A HREF="Evolution.Animal.html" title="class in <Unnamed>">Evolution.Animal</A>> enemies,
java.util.ArrayList<<A HREF="Evolution.Animal.html" title="class in <Unnamed>">Evolution.Animal</A>> friends)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#whoCanSeeMe(java.util.ArrayList, java.util.ArrayList, int)">whoCanSeeMe</A></B>(java.util.ArrayList<<A HREF="Evolution.Animal.html" title="class in <Unnamed>">Evolution.Animal</A>> enemies,
java.util.ArrayList<<A HREF="Evolution.Animal.html" title="class in <Unnamed>">Evolution.Animal</A>> friends,
int range)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="Evolution.Animal.html#wipeSprite()">wipeSprite</A></B>()</CODE>
<BR>
Overload of wipeSprite, using the default pixel arrays.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_Evolution.Drawable"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class <A HREF="Evolution.Drawable.html" title="class in <Unnamed>">Evolution.Drawable</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="Evolution.Drawable.html#drawSprite()">drawSprite</A>, <A HREF="Evolution.Drawable.html#drawSprite(int[])">drawSprite</A>, <A HREF="Evolution.Drawable.html#setSprite(int[])">setSprite</A>, <A HREF="Evolution.Drawable.html#wipeSprite(int[], int[])">wipeSprite</A>, <A HREF="Evolution.Drawable.html#wrapPosition()">wrapPosition</A></CODE></TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="species"><!-- --></A><H3>
species</H3>
<PRE>
public java.lang.String <B>species</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="bundle"><!-- --></A><H3>
bundle</H3>
<PRE>
public java.lang.String <B>bundle</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="direction"><!-- --></A><H3>
direction</H3>
<PRE>
public double <B>direction</B></PRE>
<DL>
<DD>Direction in radians
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="directionAltered"><!-- --></A><H3>
directionAltered</H3>
<PRE>
public java.lang.Double <B>directionAltered</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="life"><!-- --></A><H3>
life</H3>
<PRE>
public int <B>life</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="rateOfEvolution"><!-- --></A><H3>
rateOfEvolution</H3>
<PRE>
public double <B>rateOfEvolution</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="rateOfEvolutionCanEvolve"><!-- --></A><H3>
rateOfEvolutionCanEvolve</H3>
<PRE>
public boolean <B>rateOfEvolutionCanEvolve</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="colour"><!-- --></A><H3>
colour</H3>
<PRE>
public int <B>colour</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="colourCanEvolve"><!-- --></A><H3>
colourCanEvolve</H3>
<PRE>
public boolean <B>colourCanEvolve</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="speed"><!-- --></A><H3>
speed</H3>
<PRE>
public double <B>speed</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="speedCanEvolve"><!-- --></A><H3>
speedCanEvolve</H3>
<PRE>
public boolean <B>speedCanEvolve</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="stopped"><!-- --></A><H3>
stopped</H3>
<PRE>
public boolean <B>stopped</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="speedFactor"><!-- --></A><H3>
speedFactor</H3>
<PRE>
public double <B>speedFactor</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="spawnLife"><!-- --></A><H3>
spawnLife</H3>
<PRE>
public int <B>spawnLife</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="spawnChildren"><!-- --></A><H3>
spawnChildren</H3>
<PRE>
public int <B>spawnChildren</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="spawnCanEvolve"><!-- --></A><H3>
spawnCanEvolve</H3>
<PRE>
public boolean <B>spawnCanEvolve</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="sight"><!-- --></A><H3>
sight</H3>
<PRE>
public int <B>sight</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="sightCanEvolve"><!-- --></A><H3>
sightCanEvolve</H3>
<PRE>
public boolean <B>sightCanEvolve</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="sightFactor"><!-- --></A><H3>
sightFactor</H3>
<PRE>
public double <B>sightFactor</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="colourAlignment"><!-- --></A><H3>
colourAlignment</H3>
<PRE>
public int <B>colourAlignment</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="colourAlignmentCanEvolve"><!-- --></A><H3>
colourAlignmentCanEvolve</H3>
<PRE>
public boolean <B>colourAlignmentCanEvolve</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="spriteCanEvolve"><!-- --></A><H3>
spriteCanEvolve</H3>
<PRE>
public boolean <B>spriteCanEvolve</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="currentAction"><!-- --></A><H3>
currentAction</H3>
<PRE>
public <A HREF="Evolution.Action.html" title="enum in <Unnamed>">Evolution.Action</A> <B>currentAction</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="actions"><!-- --></A><H3>
actions</H3>
<PRE>
public <A HREF="Evolution.Action.html" title="enum in <Unnamed>">Evolution.Action</A>[] <B>actions</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="actionsCanEvolve"><!-- --></A><H3>
actionsCanEvolve</H3>
<PRE>
public boolean <B>actionsCanEvolve</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="generation"><!-- --></A><H3>
generation</H3>
<PRE>
public int <B>generation</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="rand"><!-- --></A><H3>
rand</H3>
<PRE>
public double <B>rand</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="randomizeChildren"><!-- --></A><H3>
randomizeChildren</H3>
<PRE>
public boolean <B>randomizeChildren</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="kills"><!-- --></A><H3>
kills</H3>
<PRE>
public long <B>kills</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="spawns"><!-- --></A><H3>
spawns</H3>
<PRE>
public long <B>spawns</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="childrenSpawned"><!-- --></A><H3>
childrenSpawned</H3>
<PRE>
public long <B>childrenSpawned</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="born"><!-- --></A><H3>
born</H3>
<PRE>
public long <B>born</B></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="Evolution.Animal()"><!-- --></A><H3>
Evolution.Animal</H3>
<PRE>
public <B>Evolution.Animal</B>()</PRE>
<DL>
<DD>Constructor, sets default locations, sprite, actions, statistics
<P>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="defaultSprite()"><!-- --></A><H3>
defaultSprite</H3>
<PRE>
private int[] <B>defaultSprite</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="move()"><!-- --></A><H3>
move</H3>
<PRE>
public void <B>move</B>()</PRE>
<DL>
<DD>Moves a sprite to it's next position, based on direction and speed.
... Note that I trim the sprite pixels from the max position, so
it doesn't try to draw the sprite partially off the screen. I had
to add the mod dividend to the divisor to allow for wrapping negative
values, because Java assigns the sign of the divisor to the remainder.
ie: -2 % 7 = -2, which isn't what we want, we want -2 % 7 = 5. To do
that, I do (-2 + 7) % 7 = 5, which will also work for positives:
(6 + 7) % 7 = 6, (11 + 7) % 7 = 4, etc...
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="live()"><!-- --></A><H3>
live</H3>
<PRE>
public void <B>live</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="die()"><!-- --></A><H3>
die</H3>
<PRE>
public void <B>die</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="Evolution.Drawable.html#die()">die</A></CODE> in class <CODE><A HREF="Evolution.Drawable.html" title="class in <Unnamed>">Evolution.Drawable</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="scanForAPlant()"><!-- --></A><H3>
scanForAPlant</H3>
<PRE>
public <A HREF="Evolution.Plant.html" title="class in <Unnamed>">Evolution.Plant</A> <B>scanForAPlant</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="scanForPlants()"><!-- --></A><H3>
scanForPlants</H3>
<PRE>
public void <B>scanForPlants</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="scanForAHazard()"><!-- --></A><H3>
scanForAHazard</H3>
<PRE>
public <A HREF="Evolution.Hazard.html" title="class in <Unnamed>">Evolution.Hazard</A> <B>scanForAHazard</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="scanForHazards(double, double)"><!-- --></A><H3>
scanForHazards</H3>
<PRE>
public boolean <B>scanForHazards</B>(double dX,
double dY)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="whoCanSeeMe(java.util.ArrayList, java.util.ArrayList, int)"><!-- --></A><H3>
whoCanSeeMe</H3>
<PRE>
public int <B>whoCanSeeMe</B>(java.util.ArrayList<<A HREF="Evolution.Animal.html" title="class in <Unnamed>">Evolution.Animal</A>> enemies,
java.util.ArrayList<<A HREF="Evolution.Animal.html" title="class in <Unnamed>">Evolution.Animal</A>> friends,
int range)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="whoCanISee(java.util.ArrayList, java.util.ArrayList)"><!-- --></A><H3>
whoCanISee</H3>
<PRE>
public void <B>whoCanISee</B>(java.util.ArrayList<<A HREF="Evolution.Animal.html" title="class in <Unnamed>">Evolution.Animal</A>> enemies,
java.util.ArrayList<<A HREF="Evolution.Animal.html" title="class in <Unnamed>">Evolution.Animal</A>> friends)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="calculateKill()"><!-- --></A><H3>
calculateKill</H3>
<PRE>
public void <B>calculateKill</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="calculateReaction()"><!-- --></A><H3>
calculateReaction</H3>
<PRE>
public void <B>calculateReaction</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="isFriendlyTo(Evolution.Animal)"><!-- --></A><H3>
isFriendlyTo</H3>
<PRE>
public boolean <B>isFriendlyTo</B>(<A HREF="Evolution.Animal.html" title="class in <Unnamed>">Evolution.Animal</A> a)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="eat(Evolution.Plant)"><!-- --></A><H3>
eat</H3>
<PRE>
public void <B>eat</B>(<A HREF="Evolution.Plant.html" title="class in <Unnamed>">Evolution.Plant</A> p)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="spawn()"><!-- --></A><H3>
spawn</H3>
<PRE>
public void <B>spawn</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="drawSprite(int, int, int[])"><!-- --></A><H3>
drawSprite</H3>
<PRE>
public void <B>drawSprite</B>(int x,
int y,
int[] image)</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="Evolution.Drawable.html#drawSprite(int, int, int[])">Evolution.Drawable</A></CODE></B></DD>
<DD>Draw the sprite at the specified position. Only draws non-background
pixels, which allows for sprites to overlap (and saves a bit of work.)
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="Evolution.Drawable.html#drawSprite(int, int, int[])">drawSprite</A></CODE> in class <CODE><A HREF="Evolution.Drawable.html" title="class in <Unnamed>">Evolution.Drawable</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - X Coordinate<DD><CODE>y</CODE> - Y Coordinate</DL>
</DD>
</DL>
<HR>
<A NAME="wipeSprite()"><!-- --></A><H3>
wipeSprite</H3>
<PRE>
public void <B>wipeSprite</B>()</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="Evolution.Drawable.html#wipeSprite()">Evolution.Drawable</A></CODE></B></DD>
<DD>Overload of wipeSprite, using the default pixel arrays.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="Evolution.Drawable.html#wipeSprite()">wipeSprite</A></CODE> in class <CODE><A HREF="Evolution.Drawable.html" title="class in <Unnamed>">Evolution.Drawable</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getSprite()"><!-- --></A><H3>
getSprite</H3>
<PRE>
public int[] <B>getSprite</B>()</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="Evolution.Drawable.html#getSprite()">Evolution.Drawable</A></CODE></B></DD>
<DD>Getter for the sprite (can be overridden)
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="Evolution.Drawable.html#getSprite()">getSprite</A></CODE> in class <CODE><A HREF="Evolution.Drawable.html" title="class in <Unnamed>">Evolution.Drawable</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>int array of the pixels for this sprite</DL>
</DD>
</DL>
<HR>
<A NAME="getDirection()"><!-- --></A><H3>
getDirection</H3>
<PRE>
public int <B>getDirection</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setDirection(int)"><!-- --></A><H3>
setDirection</H3>
<PRE>
public void <B>setDirection</B>(int direction)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getSight()"><!-- --></A><H3>
getSight</H3>
<PRE>
public int <B>getSight</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getPositionX()"><!-- --></A><H3>
getPositionX</H3>
<PRE>
public int <B>getPositionX</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="Evolution.Drawable.html#getPositionX()">getPositionX</A></CODE> in class <CODE><A HREF="Evolution.Drawable.html" title="class in <Unnamed>">Evolution.Drawable</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setPositionX(int)"><!-- --></A><H3>
setPositionX</H3>
<PRE>
public void <B>setPositionX</B>(int positionX)</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="Evolution.Drawable.html#setPositionX(int)">setPositionX</A></CODE> in class <CODE><A HREF="Evolution.Drawable.html" title="class in <Unnamed>">Evolution.Drawable</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getPositionY()"><!-- --></A><H3>
getPositionY</H3>
<PRE>
public int <B>getPositionY</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="Evolution.Drawable.html#getPositionY()">getPositionY</A></CODE> in class <CODE><A HREF="Evolution.Drawable.html" title="class in <Unnamed>">Evolution.Drawable</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setPositionY(int)"><!-- --></A><H3>
setPositionY</H3>
<PRE>
public void <B>setPositionY</B>(int positionY)</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="Evolution.Drawable.html#setPositionY(int)">setPositionY</A></CODE> in class <CODE><A HREF="Evolution.Drawable.html" title="class in <Unnamed>">Evolution.Drawable</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setPositionX(double)"><!-- --></A><H3>
setPositionX</H3>
<PRE>
public void <B>setPositionX</B>(double positionX)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setPositionY(double)"><!-- --></A><H3>
setPositionY</H3>
<PRE>
public void <B>setPositionY</B>(double positionY)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="rand()"><!-- --></A><H3>
rand</H3>
<PRE>
private double <B>rand</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getSpeed()"><!-- --></A><H3>
getSpeed</H3>
<PRE>
public double <B>getSpeed</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getDirectionAltered()"><!-- --></A><H3>
getDirectionAltered</H3>
<PRE>
public java.lang.Double <B>getDirectionAltered</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setDirectionAltered(java.lang.Double)"><!-- --></A><H3>
setDirectionAltered</H3>
<PRE>
public void <B>setDirectionAltered</B>(java.lang.Double directionNew)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Evolution.Animal.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="Evolution.Action.html" title="enum in <Unnamed>"><B>PREV CLASS</B></A>
<A HREF="Evolution.Drawable.html" title="class in <Unnamed>"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="index.html?Evolution.Animal.html" target="_top"><B>FRAMES</B></A>
<A HREF="Evolution.Animal.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>