public class Bullet extends java.lang.Object implements Pool.Entry
| Modifier and Type | Field and Description | 
|---|---|
| static android.graphics.Bitmap | bitmapHorizПредзагруженная текстура пули летящей вертикально и горизонтально | 
| static android.graphics.Bitmap | bitmapVertПредзагруженная текстура пули летящей вертикально и горизонтально | 
| Constructor and Description | 
|---|
| Bullet()Создение нового обьекта, так как пули создаются в пуле (: то вручную конструктор не
 вызывается | 
| Modifier and Type | Method and Description | 
|---|---|
| void | changeID(long id) | 
| android.graphics.Rect | draw(android.graphics.Canvas canvas,
    int deltaTime)Передвинуть и нарисовать пулю | 
| boolean | equals(java.lang.Object o)Compares this instance with the specified object and indicates if they
 are equal. | 
| android.graphics.Rect | getBoundsRect() | 
| long | getID() | 
| User | getOwner() | 
| float | getSpeed() | 
| void | release() | 
| boolean | released() | 
| void | setup(User owner,
     float speed)Установить новые параметры пули | 
| java.lang.String | toString()Returns a string containing a concise, human-readable description of this
 object. | 
public static android.graphics.Bitmap bitmapVert
public static android.graphics.Bitmap bitmapHoriz
public Bullet()
setup(User, float)public android.graphics.Rect draw(android.graphics.Canvas canvas,
                                  int deltaTime)
canvas - deltaTime - public void setup(User owner, float speed)
owner - пользователь, который выстрелилspeed - скорость пули (пикселей за кадр)public void changeID(long id)
public long getID()
public android.graphics.Rect getBoundsRect()
public User getOwner()
public float getSpeed()
public boolean released()
released in interface Pool.Entrypublic void release()
release in interface Pool.Entrypublic boolean equals(java.lang.Object o)
java.lang.Objecto must represent the same object
 as this instance using a class-specific comparison. The general contract
 is that this comparison should be reflexive, symmetric, and transitive.
 Also, no object reference other than null is equal to null.
 The default implementation returns true only if this ==
 o. See Writing a correct
 equals method
 if you intend implementing your own equals method.
 
The general contract for the equals and Object.hashCode() methods is that if equals returns true for
 any two objects, then hashCode() must return the same value for
 these objects. This means that subclasses of Object usually
 override either both methods or neither of them.
equals in class java.lang.Objecto - the object to compare this instance with.true if the specified object is equal to this Object; false otherwise.Object.hashCode()public java.lang.String toString()
java.lang.ObjectgetClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
 toString method
 if you intend implementing your own toString method.
toString in class java.lang.Object