Back to project page android-jplay.
The source code is released under:
Copyright (c) Nikolaj Baer All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. ...
If you think the Android project android-jplay listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.nikolajbaer.game.weapons; //from w w w . ja v a 2 s . co m /* local */ import com.nikolajbaer.game.*; import com.nikolajbaer.game.objects.*; public abstract class Weapon { // pull the trigger down public abstract void triggerOn(); // release the trigger public abstract void triggerOff(); // the name public abstract String getName(); // the type of weapon port this goes into.. public abstract int getPortType(); // the tick // CONSIDER should this be a player object? what about a stationary cannon? public abstract void tick(PlayerObject parent); // the muzzle speed of projectiles for estimation of AI, -1 for not being relevant public abstract float getVelocity(); }