CengBall: API (documented for version: v0.5)

Ball Class extends from MovingObject Class

Method name Parameters Return Description
Ball none constructor Default Ball constructor. Sets the MovingObject position and speed vector2D(0.0,0.0), and radius to DEFAULT_BALL_RADIUS
Ball vector2D, vector2D constructor Constructor of the ball class specifying the position and the speed.
checkOwner Player boolean Checks if the given player is the owner of the ball.
clone none Ball Creates a copy of the ball object and returns it.
getOwner none Player Gets the owner of the ball object.
getTrapDistance none int Gets the distance to be able to trap the ball.
initialize Pitch void Places the ball in the middle of the given pitch object and initializes its speed to zero.
setOwner Player void Sets the owner of the ball object.
syncWithOwner none void Synchronizes the ball object with its owner. The speed and the position of the ball is updated according to the owner's speed and position.

Attribute type Attribute name Description
none none Can not be reached any attribute of this.

TODO

News from CengBall

Quick Tutorial

How to set jdk path
How to import code

Twitter

    Follow @cengball

    © Copyright - Project 11