Bottle 2D - Lua API 1.0.0
All you need to create games using bottle2D.
Public Member Functions | Public Attributes

PhLine Class Reference

A physic object representing a line created using Group::CreatePhLine. More...

#include <header.hpp>

Inheritance diagram for PhLine:
PhysicObject Object

List of all members.

Public Member Functions

nil SetVector (Vector2D vector)
 Set the line vector.
Vector2D GetVector ()
 Get the line vector.
nil SetPt2 (Vector2D pt2)
 Set the line's second point (the first one is the position)
Vector2D GetPt2 ()
 Get the line's second point (the first one is the position)

Public Attributes

sf::Vecor2f vector
 Access the line vector.
sf::Vecor2f pt2
 Access the line's second point (the first one is the position)

Detailed Description

A physic object representing a line created using Group::CreatePhLine.


Member Function Documentation

Vector2D PhLine::GetPt2 ( )

Get the line's second point (the first one is the position)

Vector2D PhLine::GetVector ( )

Get the line vector.

nil PhLine::SetPt2 ( Vector2D  pt2)

Set the line's second point (the first one is the position)

nil PhLine::SetVector ( Vector2D  vector)

Set the line vector.


Member Data Documentation

sf::Vecor2f PhLine::pt2

Access the line's second point (the first one is the position)

sf::Vecor2f PhLine::vector

Access the line vector.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables