public void CreatePilot(ApplicationDataContext applicationDataContext, int height, int weight, string name, string sourname, int birthYear, int experience, SkillLevelType skillLevel) { BaseObject obj = new Pilot { Height = height, Weight = weight, BirthYear = birthYear, Name = name, Sourname = sourname, Experience = experience, SkillLevel = skillLevel, }; applicationDataContext.CallObjectCreatedEvent(applicationDataContext.Objects, obj); }
public void CreateWarPlane(ApplicationDataContext applicationDataContext, int speed, int releaseYear, string model, string identificator, int flighAltitude, int power, FuelType fuel) { BaseObject obj = new WarPlane { Speed = speed, ReleaseYear = releaseYear, Model = model, Identificator = identificator, FlightAltitude = flighAltitude, flattop = null, Pilot = null, engine = new Engine() { Power = power, Fuel = fuel, }, }; applicationDataContext.CallObjectCreatedEvent(applicationDataContext.Objects, obj); }
public void CreateFlattop(ApplicationDataContext applicationDataContext, int speed, int releaseYear, string model, string identificator, string homePort, OceanType ocean, int amountRockets, int AmountSoldiers, int power, FuelType fuel) { BaseObject obj = new Flattop { Speed = speed, ReleaseYear = releaseYear, Model = model, Identificator = identificator, HomePort = homePort, Ocean = ocean, AmountRockets = amountRockets, AmountSoldiers = AmountSoldiers, WarPlanes = new List <WarPlane>(), engine = new Engine() { Power = power, Fuel = fuel, }, }; applicationDataContext.CallObjectCreatedEvent(applicationDataContext.Objects, obj); }