C# Class AGS.Types.Game

Inheritance: IGame
Show file Open project: adventuregamestudio/ags Class Usage Examples

Private Properties

Property Type Description
FindHighestViewNumber int
InitializeDefaultPalette void
IsNameUsedByAudioClip bool
IsNameUsedByView bool

Public Methods

Method Description
ConvertCoordinatesToNativeResolution ( ) : void

WARNING: Only call this if an old game has just been loaded in, otherwise all sizes will get doubled!!!

CreateNewView ( IViewFolder createInFolder ) : AGS.Types.View
DoesRoomNumberAlreadyExist ( int roomNumber ) : bool
FindAndAllocateAvailableViewID ( ) : int

Returns an unused View ID and allocates it as in use

FindAudioClipForOldMusicNumber ( IList allAudio, int musicNumber ) : AGS.Types.AudioClip
FindAudioClipForOldSoundNumber ( IList allAudio, int soundNumber ) : AGS.Types.AudioClip
FindCharacterByID ( int charID ) : AGS.Types.Character
FindFirstAvailableRoomNumber ( int startingFromNumber ) : int
FindRoomByID ( int roomNumber ) : AGS.Types.UnloadedRoom
FindViewByID ( int viewNumber ) : AGS.Types.View

Returns the View object associated with the supplied ID

FromXml ( XmlNode node ) : void
Game ( ) : System
GetAllGameAndLoadedRoomScripts ( ) : List