public bool Collisions(clsPlayer Player, int Map, ref clsNPC Collider, ref clsHUDBank Hud, ref clsChatBox Databank, ref int HudNum, ref string HudText) { Show(Map); if (Player.GetQuest() > 0) { NPCS[2].SetSpeech("Nice work. You must have done this kind of thing before."); NPCS[1].SetSpeech("Let's hope you are as good as your boss says you are. We can't let\nthis kind of thing spread."); } for (int i = 0; i < NPCS.Length; i++) { if (NPCS[i].Visible) { if (Player.Sprite.Collides(NPCS[i].Sprite)) { Collider = NPCS[i]; HudText = NPCS[i].GetUnlockText(); HudNum = NPCS[i].GetLockNom(); return true; } } } return false; }
public clsChatBoxBank(ref clsSpriteBank Sprites, ref SpriteFont Font) { Chatbox = new clsChatBox(Sprites.sprChatBox, Sprites.sprChatBox_Closed, null, Font); RadioMessage = new clsChatBox(Sprites.sprRadioBox, Sprites.sprRadioBox_Closed, Sprites.sprRadioBox_Indicate, Font); Databank = new clsChatBox(Sprites.sprDataBox, Sprites.sprDataBox_Closed, Sprites.sprDataBox_Indicate, Font); Letter = new clsChatBox(Sprites.sprLetter, Sprites.sprLetter_Closed, null, Font); Collectables = new clsChatBox(Sprites.sprCollectables, Sprites.sprCollectable_Closed, null, Font); PlayerScore = new clsChatBox(Sprites.sprPlayerScore, null, null, Font); DataPopup = new clsChatBox(Sprites.sprDataPopup, Sprites.sprDataPopup_Closed, null, Font); A = new clsChatBox(Sprites.sprInteract, Sprites.sprInteract_Closed, null, Font); A.SetText(""); Chatbox.SetOffSet(10, 10); RadioMessage.SetOffSet(5, 60); Databank.SetOffSet(18, 60); Letter.SetOffSet(30, 30); PlayerScore.SetOffSet(10, 10); Collectables.SetOffSet(10, 10); PlayerScore.Open(); DataPopup.SetOffSet(10, 50); }