22 #ifndef AGS_ENGINE_AC_GLOBAL_CHARACTER_H 23 #define AGS_ENGINE_AC_GLOBAL_CHARACTER_H 25 #include "ags/shared/ac/character_info.h" 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);
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);
50 void MoveCharacterPath(
int chac,
int tox,
int toy);
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);
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);
69 void RunCharacterInteraction(
int cc,
int mood);
70 int AreCharObjColliding(
int charid,
int objid);
71 int AreCharactersColliding(
int cchar1,
int cchar2);
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);
78 int GetCharacterSpeechAnimationDelay(CharacterInfo *cha);
79 int GetCharIDAtScreen(
int xx,
int yy);
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);
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);