Esempio n. 1
0
File: MapCM.cs Progetto: AciesNN/cyc
		internal void BuyBuild(SlotAddr addr, Build build)
		{
			Islands[addr.islandID].BuyBuild(addr.slotID, build);

			if (OnBuyBuild != null)
				OnBuyBuild(addr, build);
		}
Esempio n. 2
0
File: MapCM.cs Progetto: AciesNN/cyc
		internal void DestroyBuild(SlotAddr addr, bool gigant = false)
		{
			Islands[addr.islandID].BuyBuild(addr.slotID, Build.None);

			if (OnDestroyBuild != null)
				OnDestroyBuild(addr, gigant);
		}
Esempio n. 3
0
File: MapCM.cs Progetto: AciesNN/cyc
		public bool IsAddrExist(SlotAddr addr)
		{
			if (addr.islandID < 0 || addr.islandID >= Islands.Count)
				return false;

			IslandCM island = Islands[addr.islandID];
			if (addr.slotID < 0 || addr.slotID >= island.Size)
				return false;

			if (island.HasMetro && addr.slotID < IslandCM.IslandMetroSizeByIslandSize(island.Size))
				return false;

			return true;
		}
Esempio n. 4
0
File: MapCM.cs Progetto: AciesNN/cyc
		public Build GetBuild(SlotAddr addr)
		{
			return Islands[addr.islandID].Slots[addr.slotID];
		}
Esempio n. 5
0
		public UseCardGig() : base() { } //JSON Constructor

		public UseCardGig(SlotAddr addr) 
			: base() 
		{
			this.addr = addr;
		}
Esempio n. 6
0
		public BuyBuild() : base() { } //JSON Constructor

		public BuyBuild(SlotAddr addr) 
			: base()
		{
			this.addr = addr;
		}
Esempio n. 7
0
		public UseCardCyc() : base() { } //JSON Constructor

		public UseCardCyc(SlotAddr addr, Build build) 
			: base() 
		{
			this.addr = addr;
			this.build = build;
		}