first commit
This commit is contained in:
59
CS1322/p6/MyWay/CMonster.java
Normal file
59
CS1322/p6/MyWay/CMonster.java
Normal file
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* <PRE>
|
||||
* Monster.java
|
||||
*
|
||||
* Revisions: 1.0 Nov. 13, 2002
|
||||
* Created the Monster class
|
||||
*
|
||||
* </PRE>
|
||||
*
|
||||
* @author <A HREF="mailto:gtg184g@mail.gatech.edu">Jose Manuel Caban</A>
|
||||
* @version Version 1.0, Nov. 13, 2002
|
||||
*/
|
||||
|
||||
public class CMonster extends CCoord implements Constants{
|
||||
|
||||
/**
|
||||
*Defines the Intelligence of the monster
|
||||
*whether player controlled or CPU controlled
|
||||
*/
|
||||
private CIntelligence oIntel;
|
||||
|
||||
/**
|
||||
*Define image for monster
|
||||
*Icons should be named as follows:
|
||||
*Iconname000.jpg, with the 000 incrementing up with each animation number
|
||||
*When used with the constructor, just give the iconname without 000 and the
|
||||
*constructor will search for the correct icon (so for a single icon lacking
|
||||
*any animation, it would be iconname000.jpg and be sent to the constructor
|
||||
*as iconname. Similarly, an icon with animations would have files
|
||||
*icon000.x, icon001.x, and icon002.x and have the name "icon" send to the
|
||||
*constructor.
|
||||
*/
|
||||
ImageIcon[] imgSprite;
|
||||
|
||||
////////////////
|
||||
//Constructors//
|
||||
////////////////
|
||||
|
||||
public CMonster(int x, int y, int h, String iconFile, CIntelligence oIntel){
|
||||
super(x,y,h);
|
||||
}
|
||||
|
||||
///////////
|
||||
//Methods//
|
||||
///////////
|
||||
|
||||
/**
|
||||
* Debugging main for class Monster.
|
||||
* This method will rigorously test my code.
|
||||
*
|
||||
* <br><br>
|
||||
* @param args a String array of command line arguments.
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
|
||||
|
||||
}// end of main(String[] args)
|
||||
|
||||
}// end of class Monster
|
||||
Reference in New Issue
Block a user