IBulletSnapshot PropertiesRobocode Control API for .NET
The IBulletSnapshot type exposes the following members.
Properties

  NameDescription
Public propertyBulletId
Contains the ID of the bullet used for identifying the bullet in a collection of bullets.
Public propertyColor
Contains the color of the bullet.
Public propertyExplosionImageIndex
Contains the explosion image index, which is different depending on the type of explosion. E.g. if it is a small explosion on a robot that has been hit by this bullet, or a big explosion when a robot dies.
Public propertyFrame
Contains the current frame number to display, i.e. when the bullet explodes.
Public propertyIsExplosion
Flag specifying if the bullet has become an explosion.
Public propertyPaintX
Contains the X painting position of the bullet. Note that this is not necessarily equal to the X position of the bullet, even though it will be in most cases. The painting position of the bullet is needed as the bullet will "stick" to its victim when it has been hit, but only visually.
Public propertyPaintY
Contains the Y painting position of the bullet. Note that this is not necessarily equal to the Y position of the bullet, even though it will be in most cases. The painting position of the bullet is needed as the bullet will "stick" to its victim when it has been hit, but only visually.
Public propertyPower
Contains the bullet power.
Public propertyState
Contains the bullet state.
Public propertyX
Contains the X position of the bullet.
Public propertyY
Contains the Y position of the bullet.
Back to Top
See Also