Difference between revisions of "CBlob"

From King Arthur's Gold Wiki
Jump to: navigation, search
Line 376: Line 376:
 
! '''Type'''
 
! '''Type'''
 
! '''Description'''
 
! '''Description'''
 +
|-
 +
| shape
 +
| [[CShape|CShape@]]
 +
| Reference to the blob's [[CShape|shape]] object.
 
|-
 
|-
 
| health
 
| health

Revision as of 12:49, 8 September 2012



Methods:

Method Description
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.

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


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