Difference between revisions of "CBlob"

From King Arthur's Gold Wiki
Jump to: navigation, search
Line 10: Line 10:
 
! '''Description'''
 
! '''Description'''
 
|-
 
|-
| [[CBlob::get_[type]|get_[type]]]
+
| [[CBlob::get_(type)|get_(type)]]
| {{:CBlob::get_[type]|get_[type]}}
+
| {{:CBlob::get_(type)|get_(type)}}
 
|-
 
|-
| [[CBlob::setPosition|setPosition]]
+
| [[CBlob::set_(type)|set_(type)]]
| {{:CBlob::setPosition|setPosition}}
+
| {{:CBlob::set_(type)|set_(type)}}
 
|-
 
|-
 
| [[CBlob::getPosition|getPosition]]
 
| [[CBlob::getPosition|getPosition]]

Revision as of 21:01, 18 September 2012



Methods:

Method Description
get_(type)

Retrieves a value of a certain type

set_(type)

Stores a value of a certain type.

getPosition

Returns a Vec2f value with current blob's position.

setPosition

Sets a new position for the blob.

getVelocity

Returns a Vec2f value with current blob's velocity.

getOldVelocity


setVelocity

Sets a new velocity for the blob.

AddForce


getRadius

Retrieve this blob's radius

getWidth


getHeight


getMass


SetVisible

Sets blob's visibility in the world.

SetDead

Sets blob dead.

Die


isActive


SetActive


Settle

Settles object in physical world.

UnSettle

Unsettles object in physical world.

getPostionWIthOffset


getScreenPos


isFacingLeft

Returns true if blob is facing left, false if blob is facing right.

SetFacingLeft

Sets blob's facing to left or right, depending on boolean parameter

isOnGround

Returns true if blob is on ground, false if blob is in air.

isOnLadder

Returns true if blob is on the ladder, false otherwise.

isOnWall


isOnCeiling


isInAction


isSnapTodGrid


RemoveScript


AddScript


PutInInventory


PutOutInventory


RemoveFromInventories


canBePutInInventory


isInventoryAccessible


SetQuantity


getQuantity


getInventoryName


RenderForHUD


getTouchingCount


getTouchingByIndex


getTouchingOffsetByIndex


getTouchingOffsetByBlob


setTouchingOffsetbyBlob


setTouchingOffsetbyIndex


isTouching


getAttachmentPointCount


getAttachmentPoint


DetachFrom


DetachAll


DetachFromAll


isAttachedTo


isAttached


getAbsoluteAttachemntPoint


getCarriedBlob


PutCarriedInventory


DropCarried


Throw


ShootBlob


AttachTo


CreateGenericButton


ClearMenus


ClearGridMenus


ClearButtons


ShowInteractButtons


ClickInteractButton


ClickClosestInteractButton


CreateInventoryMenu


ShowPickupButtons


CreateBubbleMenu


ShowBubble


ClearBubbleMenu


isInWater


getProperties


ClickGridMenu


getSprite


getShape


getMovement


getWeapon


getBrain


getAttachments


getInventory


Pickup


PickupIntoHands


PickupIntoInventory


getNetworkID


getTeamNum


setTeamNum


getTeam


getSkinNum


getHeadNum


getSexNum


getName


isMyPlayer


getControls


isKeyPressed


wasKeyPressed


isKeyJustPressed


isKeyJustReleased


setKeyPressed


getAimPos


setAimPos


getMapTile


isMapBlock


canBePlacedAt


Hit


HitMap


Damage


Heal


getHitInfosFromArc


getHitInfosFromRay


getHitInfosSize


getHitInfoByIndex


SetDamageOwnerPlayer


getRespawnPosition


CreateRespawnPoint


ModifyRespawnPoint


PlugPlayer


UnplugPlayer


MoveBlobStuffTo


getPlayer


SetTimeToDie


SendCommand

Sends a command over the network.

Properties:

Property Type Description
shape CShape@ Reference to the blob's shape object.
health f32
defaultHealth f32
inventoryIconFrame int
inventoryMaxStacks int
inventoryFramDimension dimension2di
inventorySlots dimension2di