enet.peer:send

enet.peer:send Queues a packet to be sent to the peer. Function Synopsis peer:send(data, channel, flag) Arguments string data The contents of the packet, it must be a string. number channel The channel to send the packet on. Optional. Defaults to 0. string flag flag is one of "reliable", "unsequenced", or "unreliable". Reliable packets are guaranteed to arrive, and arrive in the order in which they are sent. Unreliable packets arrive in the order in which they are sent, but they aren't gua

enet.peer:state

enet.peer:state Returns the state of the peer as a string. Function Synopsis peer:state() Arguments None. Returns string state The peer's current state. It can be any of the following: "disconnected" "connecting" "acknowledging_connect" "connection_pending" "connection_succeeded" "connected" "disconnect_later" "disconnecting" "acknowledging_disconnect" "zombie" "unknown" See Also lua-enet enet.peer

enet.peer:throttle configure

enet.peer:throttle configure Changes the probability at which unreliable packets should not be dropped. Function Synopsis peer:throttle_configure(interval, acceleration, deceleration) Arguments number interval Interval in milliseconds to measure lowest mean RTT. number acceleration Rate at which to increase throttle probability as mean RTT declines. number deceleration Rate at which to decrease throttle probability as mean RTT increases. Returns Nothing. See Also lua-enet enet.peer

enet.peer:timeout

enet.peer:timeout Returns or sets the parameters when a timeout is detected. This is happens either after a fixed timeout or a variable timeout of time that takes the round trip time into account. The former is specified with the maximum parameter. Function Synopsis peer:timeout(limit, minimum, maximum) Arguments number limit A factor that is multiplied with a value that based on the average round trip time to compute the timeout limit. number minimum Timeout value, in milliseconds, that a

FileData:getExtension

FileData:getExtension Available since LÖVE 0.7.0 This function is not supported in earlier versions. Gets the extension of the FileData. Function Synopsis ext = FileData:getExtension( ) Arguments None. Returns string ext The extension of the file the FileData represents. See Also FileData

FileData:getFilename

FileData:getFilename Available since LÖVE 0.7.0 This function is not supported in earlier versions. Gets the filename of the FileData. Function Synopsis name = FileData:getFilename( ) Arguments None. Returns string name The name of the file the FileData represents. See Also FileData

Fixture:destroy

Fixture:destroy Available since LÖVE 0.8.0 This method is not supported in earlier versions. Destroys the fixture. Function Synopsis Fixture:destroy( ) Arguments None. Returns Nothing. See Also Fixture

Fixture:getBody

Fixture:getBody Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the body to which the fixture is attached. Function Synopsis body = Fixture:getBody( ) Arguments None. Returns Body body The parent body. See Also Fixture

Fixture:getBoundingBox

Fixture:getBoundingBox Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the points of the fixture bounding box. In case the fixture has multiple children a 1-based index can be specified. For example, a fixture will have multiple children with a chain shape. Function Synopsis topLeftX, topLeftY, bottomRightX, bottomRightY = Fixture:getBoundingBox( index ) Arguments number index (1) A bounding box of the fixture. Returns number topLeftX The x position

Fixture:getCategory

Fixture:getCategory Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the categories the fixture belongs to. Function Synopsis category1, category2, ... = Fixture:getCategory( ) Arguments None. Returns number category1 The first category. number category2 The second category. See Also Fixture Fixture:setCategory