ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
global_character.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef AGS_ENGINE_AC_GLOBAL_CHARACTER_H
23 #define AGS_ENGINE_AC_GLOBAL_CHARACTER_H
24 
25 #include "ags/shared/ac/character_info.h"
26 
27 namespace AGS3 {
28 
29 void StopMoving(int chaa);
30 void ReleaseCharacterView(int chat);
31 void MoveToWalkableArea(int charid);
32 void FaceLocation(int cha, int xx, int yy);
33 void FaceCharacter(int cha, int toface);
34 void SetCharacterIdle(int who, int iview, int itime);
35 int GetCharacterWidth(int ww);
36 int GetCharacterHeight(int charid);
37 void SetCharacterBaseline(int obn, int basel);
38 // pass trans=0 for fully solid, trans=100 for fully transparent
39 void SetCharacterTransparency(int obn, int trans);
40 void AnimateCharacter4(int chh, int loopn, int sppd, int rept);
41 void AnimateCharacter6(int chh, int loopn, int sppd, int rept, int direction, int blocking);
42 void SetPlayerCharacter(int newchar);
43 void FollowCharacterEx(int who, int tofollow, int distaway, int eagerness);
44 void FollowCharacter(int who, int tofollow);
45 void SetCharacterIgnoreLight(int who, int yesorno);
46 void MoveCharacter(int cc, int xx, int yy);
47 void MoveCharacterDirect(int cc, int xx, int yy);
48 void MoveCharacterStraight(int cc, int xx, int yy);
49 // Append to character path
50 void MoveCharacterPath(int chac, int tox, int toy);
51 
52 void SetCharacterSpeedEx(int chaa, int xspeed, int yspeed);
53 void SetCharacterSpeed(int chaa, int nspeed);
54 void SetTalkingColor(int chaa, int ncol);
55 void SetCharacterSpeechView(int chaa, int vii);
56 void SetCharacterBlinkView(int chaa, int vii, int intrv);
57 void SetCharacterView(int chaa, int vii);
58 void SetCharacterFrame(int chaa, int view, int loop, int frame);
59 // similar to SetCharView, but aligns the frame to make it line up
60 void SetCharacterViewEx(int chaa, int vii, int loop, int align);
61 void SetCharacterViewOffset(int chaa, int vii, int xoffs, int yoffs);
62 void ChangeCharacterView(int chaa, int vii);
63 void SetCharacterClickable(int cha, int clik);
64 void SetCharacterIgnoreWalkbehinds(int cha, int clik);
65 void MoveCharacterToObject(int chaa, int obbj);
66 void MoveCharacterToHotspot(int chaa, int hotsp);
67 int MoveCharacterBlocking(int chaa, int xx, int yy, int direct);
68 
69 void RunCharacterInteraction(int cc, int mood);
70 int AreCharObjColliding(int charid, int objid);
71 int AreCharactersColliding(int cchar1, int cchar2);
72 
73 int GetCharacterProperty(int cha, const char *property);
74 void SetCharacterProperty(int who, int flag, int yesorno);
75 int GetPlayerCharacter();
76 void GetCharacterPropertyText(int item, const char *property, char *bufer);
77 
78 int GetCharacterSpeechAnimationDelay(CharacterInfo *cha);
79 int GetCharIDAtScreen(int xx, int yy);
80 
81 void SetActiveInventory(int iit);
82 void AddInventoryToCharacter(int charid, int inum);
83 void LoseInventoryFromCharacter(int charid, int inum);
84 void update_invorder();
85 void add_inventory(int inum);
86 void lose_inventory(int inum);
87 
88 void DisplayThought(int chid, const char *text);
89 void __sc_displayspeech(int chid, const char *text);
90 void DisplaySpeechAt(int xx, int yy, int wii, int aschar, const char *spch);
91 int DisplaySpeechBackground(int charid, const char *speel);
92 
93 } // namespace AGS3
94 
95 #endif
Definition: ags.h:40