Package org.rspeer.game.event
Class HitsplatEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.rspeer.event.Event<T>
-
- org.rspeer.game.event.GameEvent<PathingEntity<?>>
-
- org.rspeer.game.event.HitsplatEvent
-
- All Implemented Interfaces:
Serializable
public class HitsplatEvent extends GameEvent<PathingEntity<?>>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HitsplatEvent(PathingEntity<?> source, int type, int damage, int specialType, int specialDamage)
Constructs a prototypical Event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDamage()
int
getSpecialDamage()
Hitsplat.Type
getSpecialType()
int
getSpecialTypeId()
Hitsplat.Type
getType()
int
getTypeId()
-
Methods inherited from class org.rspeer.event.Event
consume, getSource, isConsumed
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
HitsplatEvent
public HitsplatEvent(PathingEntity<?> source, int type, int damage, int specialType, int specialDamage)
Constructs a prototypical Event.- Parameters:
source
- The object on which the Event initially occurred.- Throws:
IllegalArgumentException
- if source is null.
-
-
Method Detail
-
getDamage
public int getDamage()
-
getSpecialTypeId
public int getSpecialTypeId()
-
getTypeId
public int getTypeId()
-
getSpecialDamage
public int getSpecialDamage()
-
getType
public Hitsplat.Type getType()
-
getSpecialType
public Hitsplat.Type getSpecialType()
-
-