AlpacaLibary  1.63
A closed source C++ bot for OSRS
Internal.hpp
Go to the documentation of this file.
1 #ifndef INTERNAL_HPP_INCLUDED
2 #define INTERNAL_HPP_INCLUDED
3 
4 #include "Debug.hpp"
5 #include "Input.hpp"
6 #include "Math.hpp"
7 #include "Paint.hpp"
8 #include "Script.hpp"
9 #include "Time.hpp"
10 
11 #include "Types/Tile.hpp"
12 #include "Types/Point.hpp"
13 #include "Types/Box.hpp"
14 #include "Types/Timer.hpp"
15 #include "Types/Counter.hpp"
16 #include "Types/Countdown.hpp"
17 #include "Types/Convex.hpp"
18 #include "Types/Area.hpp"
19 #include "Types/Logger.hpp"
20 #include "Types/Triangle.hpp"
21 #include "Types/Wireframe.hpp"
22 
23 #include "JavaClass/ByteBuffer.hpp"
24 #include "JavaClass/Canvas.hpp"
25 #include "JavaClass/FocusEvent.hpp"
26 #include "JavaClass/Integer.hpp"
27 #include "JavaClass/KeyEvent.hpp"
29 #include "JavaClass/Map.hpp"
30 #include "JavaClass/MouseEvent.hpp"
32 #include "JavaClass/Object.hpp"
33 
36 #include "Classes/Animation.hpp"
37 #include "Classes/AttackOption.hpp"
38 #include "Classes/Cache.hpp"
40 #include "Classes/Character.hpp"
42 #include "Classes/ClanMember.hpp"
45 #include "Classes/CombatInfo.hpp"
47 #include "Classes/Deque.hpp"
51 #include "Classes/Font.hpp"
52 #include "Classes/FontFamily.hpp"
53 #include "Classes/FontName.hpp"
54 #include "Classes/Fonts.hpp"
55 #include "Classes/Frame.hpp"
56 #include "Classes/FrameMap.hpp"
57 #include "Classes/Frames.hpp"
58 #include "Classes/Friend.hpp"
59 #include "Classes/FriendList.hpp"
60 #include "Classes/GameObject.hpp"
61 #include "Classes/GameShell.hpp"
63 #include "Classes/GroundItem.hpp"
64 #include "Classes/GroundObject.hpp"
65 #include "Classes/HashTable.hpp"
66 #include "Classes/HealthBar.hpp"
67 #include "Classes/HealthInfo.hpp"
68 #include "Classes/Ignore.hpp"
69 #include "Classes/IgnoreList.hpp"
71 #include "Classes/IntegerNode.hpp"
73 #include "Classes/ItemInfo.hpp"
76 #include "Classes/LinkedList.hpp"
77 #include "Classes/MessageNode.hpp"
78 #include "Classes/Model.hpp"
79 #include "Classes/Nameable.hpp"
81 #include "Classes/NamePair.hpp"
82 #include "Classes/Node.hpp"
83 #include "Classes/NPC.hpp"
84 #include "Classes/NPCInfo.hpp"
85 #include "Classes/ObjectInfo.hpp"
86 #include "Classes/ObjectNode.hpp"
88 #include "Classes/Player.hpp"
89 #include "Classes/PlayerInfo.hpp"
91 #include "Classes/Preferences.hpp"
92 #include "Classes/Projectile.hpp"
93 #include "Classes/Queue.hpp"
94 #include "Classes/Region.hpp"
95 #include "Classes/Renderable.hpp"
96 #include "Classes/SceneTile.hpp"
98 #include "Classes/Sprite.hpp"
99 #include "Classes/Talkable.hpp"
100 #include "Classes/Varbit.hpp"
101 #include "Classes/WallObject.hpp"
102 #include "Classes/Widget.hpp"
103 #include "Classes/WidgetNode.hpp"
104 #include "Classes/World.hpp"
105 
106 
107 namespace Internal
108 {
109 
110  extern GameShell Client;
111 
115  std::int32_t GetCameraPitch();
116  std::int32_t GetCameraX();
117  std::int32_t GetCameraY();
118  std::int32_t GetCameraYaw();
119  std::int32_t GetCameraZ();
120  std::int16_t GetCameraZoom();
123  std::vector<std::int32_t> GetClientKeyCodes();
124  std::int32_t GetClientPlane();
126  std::int32_t GetClientX();
127  std::int32_t GetClientY();
128  std::vector<CollisionData> GetCollisionMaps();
129  std::int32_t GetCrosshairState();
130  std::vector<std::int32_t> GetCurrentLevels();
131  std::int32_t GetCurrentWorld();
132  std::int32_t GetDraggingItemDuration();
134  std::vector<ExchangeOffer> GetExchangeOffers();
135  std::vector<std::int32_t> GetExperiences();
136  bool GetFocused();
138  std::int32_t GetGameState();
139  std::int32_t GetGameTick();
141  std::vector<std::vector<std::vector<Deque>>> GetGroundItems();
142  std::int32_t GetHintArrowNPCIndex();
143  std::int32_t GetHintArrowOffsetX();
144  std::int32_t GetHintArrowOffsetY();
145  std::int32_t GetHintArrowPlayerIndex();
146  std::int32_t GetHintArrowTargetType();
147  std::int32_t GetHintArrowX();
148  std::int32_t GetHintArrowY();
149  std::int32_t GetHintArrowZ();
151  std::vector<std::vector<std::vector<std::int32_t>>> GetInstanceChunkTemplates();
152  bool GetIsMember();
157  std::int32_t GetItemSelected();
158  std::int32_t GetItemSelectedIndex();
160  std::vector<std::int8_t> GetKeysPressed();
161  std::vector<std::int32_t> GetLevels();
163  std::int32_t GetLocalDestinationX();
164  std::int32_t GetLocalDestinationY();
166  std::int32_t GetLocalPlayerIndex();
169  std::int32_t GetLoginAccountState();
170  std::int32_t GetLoginCaret();
171  std::string GetLoginMessage0();
172  std::string GetLoginMessage1();
173  std::string GetLoginMessage2();
174  std::int32_t GetLoginScreenX();
175  std::int32_t GetLoginState();
176  std::int32_t GetLoginWindow();
177  std::int32_t GetMapAngle();
178  std::vector<std::int32_t> GetMapRegions();
179  std::vector<std::string> GetMenuActions();
180  std::int32_t GetMenuCount();
181  std::int32_t GetMenuHeight();
182  std::vector<std::string> GetMenuTargets();
184  std::int32_t GetMenuWidth();
185  std::int32_t GetMenuX();
186  std::int32_t GetMenuY();
187  std::int64_t GetMouseLastPressed();
188  std::int32_t GetMouseX();
189  std::int32_t GetMouseY();
191  std::int32_t GetNPCCount();
193  std::vector<std::int32_t> GetNPCIndices();
196  std::vector<NPC> GetNPCs();
200  std::string GetPassword();
202  std::int32_t GetPlayerCount();
203  std::vector<std::int32_t> GetPlayerIndices();
205  std::vector<Player> GetPlayers();
207  std::int32_t GetRunEnergy();
208  std::string GetSelectedItemName();
209  std::string GetSelectedSpellName();
210  std::vector<std::int32_t> GetSettings();
214  std::vector<std::vector<std::vector<std::int32_t>>> GetTileHeights();
215  std::vector<std::vector<std::vector<std::int8_t>>> GetTileSettings();
216  std::string GetUsername();
218  std::vector<std::int32_t> GetVarbitSettings();
219  std::int32_t GetViewportHeight();
220  std::int32_t GetViewportScale();
221  std::int32_t GetViewportWidth();
222  std::int32_t GetWeight();
225  std::int32_t GetWidgetRoot();
226  std::vector<std::vector<Widget>> GetWidgets();
227  std::vector<std::int32_t> GetWidgetsHeight();
228  std::vector<std::int32_t> GetWidgetsWidth();
229  std::vector<std::int32_t> GetWidgetsX();
230  std::vector<std::int32_t> GetWidgetsY();
232  std::int32_t GetWorldSelectPageIndex();
233  std::int32_t GetWorldSelectPageSize();
234  std::vector<World> GetWorlds();
235  ItemInfo LoadItemInfo(std::int32_t ID);
236  NPCInfo LoadNPCInfo(std::int32_t ID);
237  ObjectInfo LoadObjectInfo(std::int32_t ID);
238  bool LoadWorlds();
239  void SetWorld(const World& W);
240 
241  ItemInfo GetItemInfo(std::int32_t ID);
242  NPCInfo GetNPCInfo(std::int32_t ID);
243  ObjectInfo GetObjectInfo(std::int32_t ID);
244  ObjectInfo GetObjectInfo(std::int32_t ID, const std::vector<Node>& Buckets);
245  Widget GetWidget(std::int32_t Container, std::int32_t Component);
247  std::int32_t GetWidgetX(const Widget& W);
248  std::int32_t GetWidgetX(const Widget& W, const std::vector<std::int32_t>& Xs);
249  std::int32_t GetWidgetY(const Widget& W);
250  std::int32_t GetWidgetY(const Widget& W, const std::vector<std::int32_t>& Ys);
251  bool GetWidgetHidden(const Widget& W);
253  Box GetWidgetBox(const Widget& W, const std::vector<std::int32_t>& Xs, const std::vector<std::int32_t>& Ys);
254  ItemContainer GetItemContainer(std::int32_t ID);
255  NPC GetNPC(std::int32_t Index);
256  Player GetPlayer(std::int32_t Index);
257  std::int32_t GetTileHeight(std::int32_t X, std::int32_t Y, std::int32_t Z);
258  std::vector<Point> ProjectModel(const Model& M, std::int32_t LocalX, std::int32_t LocalY,
259  std::int32_t LocalZ, std::int32_t Angle);
260  Model GetPlayerModel(std::int64_t ID);
261  Model GetNPCModel(std::int64_t ID);
262  Varbit GetVarbit(std::int32_t ID);
263  Animation GetAnimation(std::int32_t ID);
264  Frames GetFrames(std::int32_t ID);
265  Model GetItemModel(std::int32_t ID);
266  Model GetItemModel(std::int32_t ID, std::int32_t Amount);
267  SpotAnimation GetSpotAnimation(std::int32_t ID);
268  Model GetSpotAnimationModel(std::int32_t ID);
273  Model GetDynamicObjectModel(std::int32_t ID);
274  std::vector<std::vector<Deque>> GetGroundItems(std::int32_t Plane);
275  Deque GetGroundItems(std::int32_t X, std::int32_t Y);
276  Deque GetGroundItems(std::int32_t X, std::int32_t Y, std::int32_t Plane);
277  std::vector<Point> GetPlayerModel(const Player& P);
278  std::vector<Point> GetNPCModel(const NPC& N);
279  std::vector<Point> GetGameObjectModel(const GameObject& O);
280  std::vector<Point> GetGraphicsObjectModel(const GraphicsObject& O);
281  std::vector<Point> GetProjectileModel(const Internal::Projectile& P);
282  SceneTile GetSceneTile(std::int32_t X, std::int32_t Y, std::int32_t Plane);
283  std::vector<std::vector<SceneTile>> GetSceneTiles(std::int32_t Plane);
285  std::int32_t GetTileItemHeight(std::int32_t X, std::int32_t Y, std::int32_t Plane);
286  Sprite GetItemSprite(std::int32_t ID, std::int32_t Amount);
288  std::int32_t GetSettings(std::int32_t ID);
289  std::int32_t GetVarbitSettings(std::int32_t VarbitSettingIndex);
290  Point TileToMainscreen(const Tile& T, std::int32_t X, std::int32_t Y, std::int32_t Z);
291  std::vector<Point> TileToMainscreenBox(const Tile& T, std::int32_t X, std::int32_t Y, std::int32_t Z,
292  std::int32_t OffsetX, std::int32_t OffsetY, std::int32_t OffsetZ);
293  std::string GetItemName(std::int32_t ID);
294  bool IsItemPlaceholder(std::int32_t ID);
295  bool IsItemStackable(std::int32_t ID);
297  std::vector<Widget> GetWidgets(std::int32_t Container);
298  CollisionData GetCollisionMap(std::int32_t Plane);
299  std::int8_t GetKeyPressed(std::int32_t Index);
300 
301 }
302 #endif // INTERNAL_HPP_INCLUDED
Definition: Box.hpp:11
Definition: Convex.hpp:9
Definition: Point.hpp:10
Definition: Tile.hpp:8
std::vector< std::int32_t > GetVarbitSettings()
Model GetGroundObjectModel(const GroundObject &O)
NPCInfo LoadNPCInfo(std::int32_t ID)
std::int32_t GetWidgetY(const Widget &W)
bool GetSpellSelected()
std::vector< Point > GetGameObjectModel(const GameObject &O)
std::vector< std::vector< std::vector< Deque > > > GetGroundItems()
std::int32_t GetWorldSelectPageIndex()
std::int32_t GetLoginWindow()
std::int32_t GetCurrentWorld()
std::int32_t GetItemSelected()
std::int32_t GetMapAngle()
Convex GetItemSpriteConvex(const Sprite &S)
std::int32_t GetCameraYaw()
std::vector< ExchangeOffer > GetExchangeOffers()
Model GetDecorativeObjectModel(const DecorativeObject &O)
std::int32_t GetGameState()
std::int32_t GetMenuCount()
std::vector< std::int32_t > GetNPCIndices()
Cache GetItemSpriteCache()
ClanMemberList GetLocalClanMemberList()
std::int8_t GetKeyPressed(std::int32_t Index)
Model GetWallObjectModel(const WallObject &O)
std::int32_t GetLocalDestinationY()
Cache GetSpotAnimationModelCache()
bool GetWorldSelectOpen()
std::int32_t GetHintArrowX()
std::vector< std::int32_t > GetWidgetsHeight()
IndexableData GetObjectIndexableData()
Sprite GetItemSprite(std::int32_t ID, std::int32_t Amount)
bool LoadWorlds()
std::int32_t GetTileHeight(std::int32_t X, std::int32_t Y, std::int32_t Z)
std::int32_t GetViewportWidth()
Cache GetObjectInfoCache()
Deque GetGraphicsObjects()
Cache GetItemInfoCache()
std::vector< std::int32_t > GetSettings()
std::int32_t GetMenuWidth()
ObjectInfo LoadObjectInfo(std::int32_t ID)
std::int32_t GetHintArrowTargetType()
std::vector< std::vector< std::vector< std::int32_t > > > GetTileHeights()
std::vector< std::vector< SceneTile > > GetSceneTiles(std::int32_t Plane)
void SetWorld(const World &W)
std::int32_t GetTileItemHeight(std::int32_t X, std::int32_t Y, std::int32_t Plane)
std::vector< std::vector< Widget > > GetWidgets()
std::vector< std::vector< std::vector< std::int8_t > > > GetTileSettings()
AbstractBufferProvider GetBufferProvider()
std::int32_t GetCameraY()
ItemContainer GetItemContainer(std::int32_t ID)
SceneTile GetSceneTile(std::int32_t X, std::int32_t Y, std::int32_t Plane)
double GetHealthPercentage(const Internal::Character &C)
Cache GetDynamicObjectCache()
Player GetLocalPlayer()
Model GetWallObjectModel2(const WallObject &O)
std::int32_t GetGameTick()
bool GetInInstance()
std::vector< Point > GetProjectileModel(const Internal::Projectile &P)
bool IsItemStackable(std::int32_t ID)
std::vector< NPC > GetNPCs()
Cache GetVarbitCache()
Widget GetWidgetParent(const Widget &W)
std::int32_t GetItemSelectedIndex()
std::int32_t GetLocalDestinationX()
std::int32_t GetWeight()
bool GetFocused()
std::int32_t GetHintArrowOffsetY()
std::vector< std::int32_t > GetExperiences()
NPCInfo GetNPCInfo(std::int32_t ID)
std::vector< std::int32_t > GetWidgetsWidth()
Cache GetNPCModelCache()
CollisionData GetCollisionMap(std::int32_t Plane)
std::vector< std::string > GetMenuTargets()
std::vector< Player > GetPlayers()
std::int32_t GetViewportHeight()
std::vector< std::int32_t > GetPlayerIndices()
ItemInfo GetItemInfo(std::int32_t ID)
std::int32_t GetWidgetX(const Widget &W)
std::vector< Point > GetGraphicsObjectModel(const GraphicsObject &O)
bool GetIsMember()
std::string GetUsername()
std::int32_t GetCameraZ()
std::int32_t GetClientY()
Varbit GetVarbit(std::int32_t ID)
Cache GetNPCInfoCache()
Frames GetFrames(std::int32_t ID)
std::vector< std::int32_t > GetLevels()
SpotAnimation GetSpotAnimation(std::int32_t ID)
Widget GetWidget(std::int32_t Container, std::int32_t Component)
Region GetLocalRegion()
Box GetWidgetBox(const Widget &W)
Cache GetWidgetFontCache()
std::int32_t GetNPCCount()
Model GetSpotAnimationModel(std::int32_t ID)
std::vector< std::int32_t > GetWidgetsX()
std::int32_t GetWorldSelectPageSize()
std::int32_t GetCrosshairState()
std::vector< std::vector< std::vector< std::int32_t > > > GetInstanceChunkTemplates()
ItemInfo LoadItemInfo(std::int32_t ID)
std::int32_t GetHintArrowNPCIndex()
bool GetWidgetHidden(const Widget &W)
PlayerManager GetLocalPlayerManager()
std::vector< Point > ProjectModel(const Model &M, std::int32_t LocalX, std::int32_t LocalY, std::int32_t LocalZ, std::int32_t Angle)
Cache GetFramesCache()
std::int32_t GetWidgetRoot()
bool IsItemPlaceholder(std::int32_t ID)
Deque GetProjectiles()
std::int32_t GetLoginState()
bool GetMenuVisible()
std::int32_t GetLoginCaret()
Model GetItemModel(std::int32_t ID)
std::int32_t GetDraggingItemDuration()
NPC GetNPC(std::int32_t Index)
ObjectInfo GetObjectInfo(std::int32_t ID)
std::int32_t GetMouseX()
Cache GetItemModelCache()
Player GetPlayer(std::int32_t Index)
std::vector< std::string > GetMenuActions()
AttackOption GetNPCAttackOption()
std::int32_t GetCameraPitch()
IndexableData GetNPCIndexableData()
std::int32_t GetHintArrowY()
std::int32_t GetViewportScale()
std::int32_t GetClientX()
std::int32_t GetHintArrowOffsetX()
std::int32_t GetHintArrowZ()
std::int32_t GetCameraX()
std::int32_t GetLoginAccountState()
Model GetNPCModel(std::int64_t ID)
Cache GetSpotAnimationCache()
bool GetCameraLocked()
Preferences GetClientPreferences()
std::int32_t GetMenuX()
std::int32_t GetPlayerCount()
Model GetPlayerModel(std::int64_t ID)
std::string GetSelectedSpellName()
std::int64_t GetMouseLastPressed()
std::int32_t GetMenuY()
std::string GetLoginMessage2()
Point TileToMainscreen(const Tile &T, std::int32_t X, std::int32_t Y, std::int32_t Z)
std::string GetLoginMessage0()
std::int32_t GetRunEnergy()
HashTable GetWidgetNodeCache()
std::string GetLoginMessage1()
Map GetChatLineCache()
std::vector< World > GetWorlds()
Point TileToMinimap(const Tile &T)
std::string GetSelectedItemName()
Map GetClientFonts()
std::vector< std::int8_t > GetKeysPressed()
Animation GetAnimation(std::int32_t ID)
std::int16_t GetCameraZoom()
Cache GetAnimationCache()
IndexableData GetItemIndexableData()
std::int32_t GetMouseY()
std::int32_t GetClientPlane()
std::string GetItemName(std::int32_t ID)
std::int32_t GetHintArrowPlayerIndex()
std::vector< std::int32_t > GetWidgetsY()
std::int32_t GetMenuHeight()
Model GetDynamicObjectModel(std::int32_t ID)
Cache GetPlayerModelCache()
Cache GetParameterInfoCache()
AttackOption GetPlayerAttackOption()
std::vector< std::int32_t > GetMapRegions()
std::vector< CollisionData > GetCollisionMaps()
std::string GetPassword()
HashTable GetItemContainers()
GameShell Client
std::vector< Point > TileToMainscreenBox(const Tile &T, std::int32_t X, std::int32_t Y, std::int32_t Z, std::int32_t OffsetX, std::int32_t OffsetY, std::int32_t OffsetZ)
std::int32_t GetLocalPlayerIndex()
std::int32_t GetLoginScreenX()
std::vector< std::int32_t > GetClientKeyCodes()
std::vector< std::int32_t > GetCurrentLevels()