source: 2014/27/AleksanteriV/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/Protokolla236TrueSurvivor/ProtoLevel.cs @ 10335

Revision 5461, 1.3 KB checked in by mijoilmo, 6 years ago (diff)
Line 
1using System;
2using System.Collections.Generic;
3using Jypeli;
4using Jypeli.Assets;
5using Jypeli.Controls;
6using Jypeli.Effects;
7using Jypeli.Widgets;
8
9public class ProtoLevel
10{
11    Proto236b parent;
12    private String tileMapSrc;
13    public String TileMapSrc { get { return tileMapSrc; } set { tileMapSrc = value; } }
14    private bool isPlanet;
15    public bool IsPlanet { get { return isPlanet; } set { isPlanet = value; } }
16    private string backgroundId;
17    public string BackgroundId { get { return backgroundId; } set { backgroundId = value; } }
18    private string valettaId;
19    public string ValettaId { get { return valettaId; } set { valettaId = value; } }
20    private string id;
21    public string Id { get { return id; } set { id = value; } }
22    public ProtoLevel(Proto236b parent, string id, bool isPlanet, string backgroundId)
23    {
24        this.backgroundId = backgroundId;
25        this.parent = parent;
26        this.id = id;
27        this.tileMapSrc = "graphics/levels/" + id;
28        this.valettaId = id + "_valetta";
29        this.isPlanet = isPlanet;
30    }
31    public string PickMusic()
32    {
33        if (parent.Music.MusicDict.ContainsKey(this.id))
34        {
35            return parent.Music.MusicDict[this.id];
36        }
37        else {
38            return "";
39        }
40    }
41}
Note: See TracBrowser for help on using the repository browser.