-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e339afc
commit 46194f7
Showing
14 changed files
with
599 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package net.gtaun.shoebill.data; | ||
|
||
/** | ||
* Created by marvin on 02.05.15 in project shoebill-api. | ||
* Copyright (c) 2015 Marvin Haschker. All rights reserved. | ||
*/ | ||
public class VehicleState { | ||
|
||
public int driver, passenger, backLeft, backRight; | ||
|
||
public VehicleState() { | ||
} | ||
|
||
public VehicleState(int driver, int passenger, int backLeft, int backRight) { | ||
this.driver = driver; | ||
this.passenger = passenger; | ||
this.backLeft = backLeft; | ||
this.backRight = backRight; | ||
} | ||
|
||
public int getDriver() { | ||
return driver; | ||
} | ||
|
||
public void setDriver(int driver) { | ||
this.driver = driver; | ||
} | ||
|
||
public int getPassenger() { | ||
return passenger; | ||
} | ||
|
||
public void setPassenger(int passenger) { | ||
this.passenger = passenger; | ||
} | ||
|
||
public int getBackLeft() { | ||
return backLeft; | ||
} | ||
|
||
public void setBackLeft(int backLeft) { | ||
this.backLeft = backLeft; | ||
} | ||
|
||
public int getBackRight() { | ||
return backRight; | ||
} | ||
|
||
public void setBackRight(int backRight) { | ||
this.backRight = backRight; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/net/gtaun/shoebill/event/actor/ActorEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package net.gtaun.shoebill.event.actor; | ||
|
||
import net.gtaun.shoebill.object.Actor; | ||
import net.gtaun.util.event.Event; | ||
|
||
/** | ||
* Created by marvin on 01.05.15 in project shoebill-api. | ||
* Copyright (c) 2015 Marvin Haschker. All rights reserved. | ||
*/ | ||
public abstract class ActorEvent extends Event { | ||
|
||
private Actor actor; | ||
|
||
public ActorEvent(Actor actor) { | ||
this.actor = actor; | ||
} | ||
|
||
public Actor getActor() { | ||
return actor; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/net/gtaun/shoebill/event/actor/ActorStreamInEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package net.gtaun.shoebill.event.actor; | ||
|
||
import net.gtaun.shoebill.object.Actor; | ||
import net.gtaun.shoebill.object.Player; | ||
|
||
/** | ||
* Created by marvin on 01.05.15 in project shoebill-api. | ||
* Copyright (c) 2015 Marvin Haschker. All rights reserved. | ||
*/ | ||
public class ActorStreamInEvent extends ActorEvent { | ||
|
||
private Player player; | ||
|
||
public ActorStreamInEvent(Actor actor, Player player) { | ||
super(actor); | ||
this.player = player; | ||
} | ||
|
||
public Player getPlayer() { | ||
return player; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/net/gtaun/shoebill/event/actor/ActorStreamOutEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package net.gtaun.shoebill.event.actor; | ||
|
||
import net.gtaun.shoebill.object.Actor; | ||
import net.gtaun.shoebill.object.Player; | ||
|
||
/** | ||
* Created by marvin on 01.05.15 in project shoebill-api. | ||
* Copyright (c) 2015 Marvin Haschker. All rights reserved. | ||
*/ | ||
public class ActorStreamOutEvent extends ActorEvent { | ||
|
||
private Player player; | ||
|
||
public ActorStreamOutEvent(Actor actor, Player player) { | ||
super(actor); | ||
this.player = player; | ||
} | ||
|
||
public Player getPlayer() { | ||
return player; | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
src/main/java/net/gtaun/shoebill/event/player/PlayerDamageActorEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package net.gtaun.shoebill.event.player; | ||
|
||
import net.gtaun.shoebill.constant.WeaponModel; | ||
import net.gtaun.shoebill.object.Actor; | ||
import net.gtaun.shoebill.object.Player; | ||
|
||
/** | ||
* Created by marvin on 01.05.15 in project shoebill-api. | ||
* Copyright (c) 2015 Marvin Haschker. All rights reserved. | ||
*/ | ||
public class PlayerDamageActorEvent extends PlayerEvent { | ||
|
||
private Actor actor; | ||
private int amount, bodypart; | ||
private WeaponModel weapon; | ||
|
||
public PlayerDamageActorEvent(Player player, Actor actor, int amount, WeaponModel weapon, int bodypart) { | ||
super(player); | ||
this.actor = actor; | ||
this.amount = amount; | ||
this.bodypart = bodypart; | ||
this.weapon = weapon; | ||
} | ||
|
||
public Actor getActor() { | ||
return actor; | ||
} | ||
|
||
public int getAmount() { | ||
return amount; | ||
} | ||
|
||
public int getBodypart() { | ||
return bodypart; | ||
} | ||
|
||
public WeaponModel getWeapon() { | ||
return weapon; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/main/java/net/gtaun/shoebill/event/vehicle/VehicleSirenStateChangeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package net.gtaun.shoebill.event.vehicle; | ||
|
||
import net.gtaun.shoebill.object.Player; | ||
import net.gtaun.shoebill.object.Vehicle; | ||
|
||
/** | ||
* Created by marvin on 01.05.15 in project shoebill-api. | ||
* Copyright (c) 2015 Marvin Haschker. All rights reserved. | ||
*/ | ||
public class VehicleSirenStateChangeEvent extends VehicleEvent { | ||
|
||
private Player player; | ||
private boolean newState; | ||
|
||
public VehicleSirenStateChangeEvent(Vehicle vehicle, Player player, boolean newState) { | ||
super(vehicle); | ||
this.player = player; | ||
this.newState = newState; | ||
} | ||
|
||
public Player getPlayer() { | ||
return player; | ||
} | ||
|
||
public boolean getNewState() { | ||
return newState; | ||
} | ||
|
||
} |
Oops, something went wrong.