En:MapObject
Материал из Pocket Fallout для КПК на PDA PC PPC Mobile.
[править]
Class "MapObject"
Class is used for creation and management of objects/units on location.
[править]
Methods list
| AddAsUnit | Add unit to location |
| AddAsObject | Add object that can be selected (yellow aura) to location |
| AddAsMisc | Add inactive object to location |
| AddAsBox | Add object as container (box/cabinet/shelves) to location |
| SetObjectDirection | Set object direction (i.e. where unit will look and if unit has all direction) |
| SetLandedState | Set object which will be landed (like carpet) |
| isItemInInventory | Check: item exists in inventiry of current object? |
| DeleteItemFromInventory | Delete item from inventiry of current object |
| MoveItemFromInventory | Move item from current inventory to inventary of specified object |
| GetUnitParam | Get value of unit parameter (personality) |
| SetUnitParam | Set value of unit parameter (personality) |
| GetCharacterParam | Get value of unit character parameter |
| SetCharacterParam | Set value of unit character parameter |
| SetRandomTalkID | Set random talking identifier |
| GetCurrentTalkID | Get identifier of current phrase in the talking with unit |
| SetCurrentTalkID | Set identifier of current phrase in the talking with unit |
| GetObjectByName | Search and locate in memory to object with name <object_name> |
| UnitCanTalk | Check: unit can talk? |
| SetRandomWalkState | Set state that unit can random walk |
| SetDescription | Set identifier of object description from file description.txt |
| GetDescription | Get identifier of object description from file description.txt for current object |
| GetUnitSkill | Get current skill of unit |
| GetObjectName | Get current name of object |
| SetUnitAction | Set current action of unit (sit down, scratch oneself and etc.) |
| GoToCell | Go/run an unit to relative tile (hexagon) |
| SetShowPopupState | Set/remove object popup menu flag |
| GetCoordinate | Get value of specified coordinate (tiles or pixels) |
| SetCoordinate | Set value of specified coordinate (tiles or pixels) |
| SetActiveHand | Set active hand to unit |
| SetItemToHand | Set item from unit inventory to his hand |
| SetDefaultImage | Set/change default image of unit |
| BeginFight | Begin fight by current unit |
| EndFight | End fight by current unit |
| AddToFight | Add current unit to fight stack |
| RemoveFromFight | Remove current unit from fight stack |
| DisplayText | Display text over unit |
| SetTitle | Set unit title at gameplay |
| GetObjectDirection | Get object direction |
| GetActiveHand | Get active hand of unit |
| GetItemFromHand | Get item name from current unit hand |
| SetArmour | Set armour to unit (item should be in unit inventory) |
| GetArmour | Get armour name which unit has at this moment |
| SetMoveState | Set move state of object |
| GetMoveState | Get move state of object |
| SetObjectActionPoints | Set value of action points |
| GetObjectActionPoints | Get value of action points |
| SetSkillLevel | Set value of unit skill |
| GetSkillLevel | Get value of unit skill |
| DoAttack | Do attack by current unit to specified target |
| CalculateSkillValues | Method is used for calculation of skill values and characteristics for model S.P.E.C.I.A.L |
| GetTitle | Get object title |
| ClearInventory | Clear inventory at current object |
| GetDefaultImage | Get current prefix of default unit |
| AddAsAnimation | Add animation to location |
| SetAnimationParam | Set value of animation parameter |
| SentToBack | Set "sent to back" flag to object |
| DoHit | Do damage to unit with declared value |
| DoTrade | Begin trade whith current talking unit. Work only, if talking window is opened |
| isUnitDead | Check: unit is dead? Return value true if current unit is dead |
| GetObjectType | Returns type of current object (added in version 1.1) |
| Free | Object destructor |