|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgroup1.model.gameobject.GameObj
group1.model.gameobject.LivingObj
group1.model.gameobject.enemy.Enemy
group1.model.gameobject.enemy.ContactEnemy
public class ContactEnemy
ContactEnemy is an Enemy that has the power to damage other objects by touching them.
Usage: (1) construct this ContactEnemy; (2) add BOTH this ContactEnemy and its Contact to Environment, USING THE FUNCTION PROVIDED BY THIS CLASS.
| Field Summary |
|---|
| Fields inherited from class group1.model.gameobject.LivingObj |
|---|
contactDamageMultiplier, curr_hp, fireDamageMultiplier, katanaDamageMultiplier, laserDamageMultiplier, max_hp, ourFacingDirection, tomahawkDamageMultiplier, VALID_WEAPON_CODES |
| Fields inherited from class group1.model.gameobject.GameObj |
|---|
acceleration, ENEMY_TEAM, GRID_SPACE_SIZE, id, isMovable, JEFF_TEAM, myState, NO_TEAM, regions, shape, THICKNESS, velocity |
| Constructor Summary | |
|---|---|
ContactEnemy()
Default constructor. |
|
ContactEnemy(double x,
double y,
PictureList p)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addMeToEnvironment(Environment env,
double x,
double y)
PLEASE USE THIS FUNCTION TO ADD ME TO AN Environment. |
Contact |
getContact()
Gets the Contact that inflicts damage on other objects. |
| Methods inherited from class group1.model.gameobject.enemy.Enemy |
|---|
attackPower, attackProbabilityDenominator, attackProbabilityNumerator, changeWeaponProbabilityDenominator, changeWeaponProbabilityNumerator, die, getRandomGenerator, makeStandardEnemyRegions, maxRunSpeed, maxWalkSpeed, move, projectileSpeed, runAcceleration, setPointValue, setRandomGenerator, shouldBeMoving, startingHP, walkAcceleration, walkSpeed |
| Methods inherited from class group1.model.gameobject.LivingObj |
|---|
changeDirectionFacing, changeWeapon, decrementInvincibilityCounter, facingWhichDirection, getCurrentWeapon, getCurrHP, getMaxHP, hasFireball, hasKatana, hasLaser, hasTomahawk, hasWeapon, hasWeaponIndex, isInvincible, setInvincibilityPeriod, setVulnerable, takeDamage |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContactEnemy(double x,
double y,
PictureList p)
x - The x-coordinate of the position.y - The y-coordinate of the position.public ContactEnemy()
| Method Detail |
|---|
public Contact getContact()
public void addMeToEnvironment(Environment env,
double x,
double y)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||