Changeset 2124


Ignore:
Timestamp:
2011-06-18 00:51:21 (8 years ago)
Author:
sijoseha
Message:

Changes to how screens are handled. Doesn't really do anything yet.

Location:
2011/23/sijoseha/Fera Proelia
Files:
1 added
14 edited

Legend:

Unmodified
Added
Removed
  • 2011/23/sijoseha/Fera Proelia/Fera Proelia/Fera Proelia/Fera Proelia.csproj.Debug.cachefile

    r2079 r2124  
    11Content\debugImage.xnb 
     2Content\hudBg.xnb 
  • 2011/23/sijoseha/Fera Proelia/Fera Proelia/Fera Proelia/GameScreen.cs

    r2118 r2124  
    88    public abstract class GameScreen 
    99    { 
     10        public bool IsActive { get { return !otherScreenHasFocus; } } 
    1011        bool otherScreenHasFocus; 
     12 
     13        public ScreenManager ScreenManager 
     14        { 
     15            get { return screenManager; } 
     16            internal set { screenManager = value; } 
     17        } 
     18        ScreenManager screenManager; 
     19 
    1120        public GameScreen() 
    1221        { 
     
    2130        } 
    2231        public virtual void Draw(GameTime gameTime) { } 
     32 
     33        public void ExitScreen() 
     34        { 
     35            ScreenManager.RemoveScreen(this); 
     36        } 
    2337    } 
    2438} 
  • 2011/23/sijoseha/Fera Proelia/Fera Proelia/Fera Proelia/ScreenManager.cs

    r2119 r2124  
    7575            base.Draw(gameTime); 
    7676        } 
     77 
     78        public void AddScreen(GameScreen screen) 
     79        { 
     80            screen.ScreenManager = this; 
     81            if (isInitialized) 
     82            { 
     83                screen.LoadContent(); 
     84            } 
     85            screens.Add(screen); 
     86        } 
     87 
     88        public void RemoveScreen(GameScreen screen) 
     89        { 
     90            if (isInitialized) 
     91            { 
     92                screen.UnloadContent(); 
     93            } 
     94 
     95            screens.Remove(screen); 
     96            screensToUpdate.Remove(screen); 
     97        } 
     98 
     99        public GameScreen[] GetScreens() 
     100        { 
     101            return screens.ToArray(); 
     102        } 
    77103    } 
    78104} 
  • 2011/23/sijoseha/Fera Proelia/Fera Proelia/Fera Proelia/obj/Windows Phone/Debug/Fera Proelia.csproj.FileListAbsolute.txt

    r2079 r2124  
    1212D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\obj\Windows Phone\Debug\XapCacheFile.xml 
    1313D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\Content\debugImage.xnb 
    14 D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\Fera Proelia.xap 
    15 D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\obj\Windows Phone\Debug\XapCacheFile.xml 
    16 D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\AppManifest.xaml 
    17 D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\obj\Windows Phone\Debug\WMAppManifest.xml.g 
    18 D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\obj\Windows Phone\Debug\WMAppManifest.xml 
    19 bin\Windows Phone\Debug\GameThumbnail.png 
     14D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\Content\hudBg.xnb 
  • 2011/23/sijoseha/Fera Proelia/Fera Proelia/Fera Proelia/obj/Windows Phone/Debug/XapCacheFile.xml

    r2118 r2124  
    1 <xapCache source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\Fera Proelia.xap" wasSigned="False" certificateThumbprint="" TimeStampUrl="" lastWriteTime="17.6.2011 9:42:42"> 
    2   <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\Background.png" archivePath="Background.png" lastWriteTime="17.6.2011 8:19:55" /> 
    3   <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\GameThumbnail.png" archivePath="GameThumbnail.png" lastWriteTime="17.6.2011 8:19:55" /> 
    4   <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\AppManifest.xaml" archivePath="AppManifest.xaml" lastWriteTime="17.6.2011 9:42:42" /> 
    5   <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\obj\Windows Phone\Debug\WMAppManifest.xml" archivePath="WMAppManifest.xml" lastWriteTime="17.6.2011 8:19:55" /> 
    6   <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\Fera Proelia.dll" archivePath="Fera Proelia.dll" lastWriteTime="17.6.2011 9:42:41" /> 
    7   <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\Content\debugImage.xnb" archivePath="Content\debugImage.xnb" lastWriteTime="17.6.2011 8:26:01" /> 
     1<xapCache source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\Fera Proelia.xap" wasSigned="False" certificateThumbprint="" TimeStampUrl="" lastWriteTime="17.6.2011 18:09:59"> 
     2  <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\Background.png" archivePath="Background.png" lastWriteTime="16.6.2011 22:26:33" /> 
     3  <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\GameThumbnail.png" archivePath="GameThumbnail.png" lastWriteTime="16.6.2011 22:26:33" /> 
     4  <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\AppManifest.xaml" archivePath="AppManifest.xaml" lastWriteTime="16.6.2011 22:27:26" /> 
     5  <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\obj\Windows Phone\Debug\WMAppManifest.xml" archivePath="WMAppManifest.xml" lastWriteTime="16.6.2011 22:27:26" /> 
     6  <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\Fera Proelia.dll" archivePath="Fera Proelia.dll" lastWriteTime="17.6.2011 18:09:59" /> 
     7  <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\Content\debugImage.xnb" archivePath="Content\debugImage.xnb" lastWriteTime="17.6.2011 18:07:05" /> 
     8  <file source="D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\Content\hudBg.xnb" archivePath="Content\hudBg.xnb" lastWriteTime="17.6.2011 18:07:05" /> 
    89</xapCache> 
  • 2011/23/sijoseha/Fera Proelia/Fera Proelia/Fera Proelia/obj/Windows Phone/Debug/cachefile-{D61D4EFB-D076-4A82-A048-9E0EC82420B4}-targetpath.txt

    r2079 r2124  
    11Content\debugImage.xnb 
     2Content\hudBg.xnb 
  • 2011/23/sijoseha/Fera Proelia/Fera Proelia/Fera ProeliaContent/obj/Windows Phone/Debug/ContentPipeline.xml

    r2118 r2124  
    99      <Options>None</Options> 
    1010      <Output>D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\Content\debugImage.xnb</Output> 
    11       <Time>2011-06-17T08:19:54.7030248+03:00</Time> 
     11      <Time>2011-06-16T22:37:48.8337831+03:00</Time> 
     12    </Item> 
     13    <Item> 
     14      <Source>hudBg.png</Source> 
     15      <Name>hudBg</Name> 
     16      <Importer>TextureImporter</Importer> 
     17      <Processor>TextureProcessor</Processor> 
     18      <Options>None</Options> 
     19      <Output>D:\Temp\sijoseha\Fera Proelia\Fera Proelia\Fera Proelia\bin\Windows Phone\Debug\Content\hudBg.xnb</Output> 
     20      <Time>2011-06-17T17:44:41.4557698+03:00</Time> 
    1221    </Item> 
    1322    <BuildSuccessful>true</BuildSuccessful> 
     
    2534      <Assembly> 
    2635        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 
    27         <Value>2010-08-23T13:41:18+03:00</Value> 
     36        <Value>2010-08-23T12:41:18+03:00</Value> 
    2837      </Assembly> 
    2938      <Assembly> 
    3039        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 
    31         <Value>2010-08-23T13:41:18+03:00</Value> 
     40        <Value>2010-08-23T12:41:18+03:00</Value> 
    3241      </Assembly> 
    3342      <Assembly> 
    3443        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 
    35         <Value>2010-08-23T13:41:18+03:00</Value> 
     44        <Value>2010-08-23T12:41:18+03:00</Value> 
    3645      </Assembly> 
    3746      <Assembly> 
    3847        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 
    39         <Value>2010-08-23T13:41:18+03:00</Value> 
     48        <Value>2010-08-23T12:41:18+03:00</Value> 
    4049      </Assembly> 
    4150      <Assembly> 
    4251        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 
    43         <Value>2010-08-23T13:41:18+03:00</Value> 
     52        <Value>2010-08-23T12:41:18+03:00</Value> 
    4453      </Assembly> 
    4554      <Assembly> 
    4655        <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 
    47         <Value>2010-08-23T13:41:18+03:00</Value> 
     56        <Value>2010-08-23T12:41:18+03:00</Value> 
    4857      </Assembly> 
    4958      <Assembly> 
    5059        <Key>C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 
    51         <Value>2011-01-07T11:35:54.8184098+02:00</Value> 
     60        <Value>2010-10-04T19:11:18.5288743+03:00</Value> 
    5261      </Assembly> 
    5362    </Assemblies> 
Note: See TracChangeset for help on using the changeset viewer.