Beispiel #1
0
        public World()
        {
            _instance   = this;
            _calendar   = new Calendar();
            _currentMap = new TileMap(0, 0, 128, 128);

            player                      = new Player();
            player.FirstName            = "Liana";
            player.LastName             = "Shadowfall";
            player.CurrentWorldPosition = new WorldPosition(0, 0);
            player.FacingDirection      = Character.Facing.East;

            _relationshipEngine = new RelationshipEngine();

            _relationshipEngine.LoadCharacters();
            _relationshipEngine.LoadConversations();

            CropSeed    corn       = CropSeed.CreateCorn();
            WorldObject cornObject = new WorldObject()
            {
                item = corn
            };

            _currentMap.PlaceItem(new Position(1, 1), cornObject);

            _calendar.AddTime(Calendar.TimeUnit.Day, 3);
        }
Beispiel #2
0
        public static CropSeed CreateWheat()
        {
            CropSeed wheat = new CropSeed();

            wheat.Name               = "Wheat";
            wheat.id                 = 2;
            wheat.ItemValue          = 75;
            wheat.CurrentStackSize   = 1;
            wheat.Description        = "Used to make cereal, bread, and flour.";
            wheat.TimeNeededToMature = Calendar.TimeUnitValueHelper(Calendar.TimeUnit.Day, 3);
            wheat.StageLengths.Add(Calendar.TimeUnitValueHelper(Calendar.TimeUnit.Day, 1));
            wheat.StageLengths.Add(Calendar.TimeUnitValueHelper(Calendar.TimeUnit.Day, 1));
            wheat.StageLengths.Add(Calendar.TimeUnitValueHelper(Calendar.TimeUnit.Day, 1));

            return(wheat);
        }
Beispiel #3
0
        public static CropSeed CreateCorn()
        {
            CropSeed corn = new CropSeed();

            corn.Name               = "Corn";
            corn.id                 = 1;
            corn.ItemValue          = 100;
            corn.CurrentStackSize   = 1;
            corn.Description        = "Corn used for just about everything.";
            corn.TimeNeededToMature = Calendar.TimeUnitValueHelper(Calendar.TimeUnit.Day, 4);
            corn.StageLengths.Add(Calendar.TimeUnitValueHelper(Calendar.TimeUnit.Day, 1));
            corn.StageLengths.Add(Calendar.TimeUnitValueHelper(Calendar.TimeUnit.Day, 1));
            corn.StageLengths.Add(Calendar.TimeUnitValueHelper(Calendar.TimeUnit.Day, 1));
            corn.StageLengths.Add(Calendar.TimeUnitValueHelper(Calendar.TimeUnit.Day, 1));
            corn.Regrows = true;

            return(corn);
        }