Bandidos
Classes | Public Member Functions | List of all members
com.mygdx.game.entities.weapons.IWeapon Interface Reference
Inheritance diagram for com.mygdx.game.entities.weapons.IWeapon:
com.mygdx.game.entities.weapons.BaseWeapon com.mygdx.game.entities.weapons.BaseBowWeapon com.mygdx.game.entities.weapons.BowWeapon

Classes

enum  WeaponType
 

Public Member Functions

void activateSpecial (int specialType)
 
WeaponType getWeaponType ()
 
void startControl (int x, int y)
 
void inControl (int x, int y)
 
void endControl (int x, int y)
 
void clean ()
 

Detailed Description

The interface which gives all the handels a weapon can be controlled with

Author
Ramses Di Perna

Member Function Documentation

◆ activateSpecial()

void com.mygdx.game.entities.weapons.IWeapon.activateSpecial ( int  specialType)

This activates the special ability of the weapon

Parameters
specialTypeis a user defines special type

Implemented in com.mygdx.game.entities.weapons.BaseBowWeapon.

◆ clean()

void com.mygdx.game.entities.weapons.IWeapon.clean ( )

Makes the class ready for garbage collection.

Implemented in com.mygdx.game.entities.weapons.BaseBowWeapon.

◆ endControl()

void com.mygdx.game.entities.weapons.IWeapon.endControl ( int  x,
int  y 
)

Where the touch is when the weapon control stops

Parameters
xposition of the touch
yposition of the touch

Implemented in com.mygdx.game.entities.weapons.BaseBowWeapon.

◆ getWeaponType()

WeaponType com.mygdx.game.entities.weapons.IWeapon.getWeaponType ( )

Returns the weapon type of this weapon instance.

Returns
WeaponType of this weapon.

Implemented in com.mygdx.game.entities.weapons.BaseBowWeapon.

◆ inControl()

void com.mygdx.game.entities.weapons.IWeapon.inControl ( int  x,
int  y 
)

Where the touch is while it is controlling the weapon

Parameters
xposition of the touch
yposition of the touch

Implemented in com.mygdx.game.entities.weapons.BaseBowWeapon.

◆ startControl()

void com.mygdx.game.entities.weapons.IWeapon.startControl ( int  x,
int  y 
)

Where the touch is when it starts controlling the weapon

Parameters
xposition of the touch
yposition of the touch

Implemented in com.mygdx.game.entities.weapons.BaseBowWeapon.


The documentation for this interface was generated from the following file: