Example #1
0
		public Missile(WorldLayer _layer, LiveMapCell _from, int _speed, Item _ammo, LiveMapCell _to)
			: base(_ammo.ENoun, _layer, _speed)
		{
			Ammo = _ammo;
			var d = (_to.PathMapCoords - _from.PathMapCoords)*10;
			if(d.Lenght>32)
			{
				d = d*31/(int)d.Lenght;
			}
			World.TheWorld.CreatureManager.AddCreature(this, _from.WorldCoords, _from.LiveCoords, _layer);
			m_path = _from.LiveCoords.GetLineToPoints(_from.LiveCoords + d).ToList();
			m_light = new LightSource(10, new FColor(2f, 1f, 0.8f, 0.4f));
		}
Example #2
0
		public IndoorLight(LightSource _lightSource, Material _material)
			: base(EALNouns.IndoorLight, _lightSource, _material) { }
		protected LightSourceThing(EALNouns _name, LightSource _lightSource, Material _material) : base(_name, _material) { m_lightSource = _lightSource; }
Example #4
0
		public OnWallTorch(LightSource _lightSource, EDirections _direction, Material _material)
			: base(EALNouns.Torch, _lightSource, _material) { m_direction = _direction; }