Exemple #1
0
        public void createShadowCreature(int x, int y)
        {
            LivingGameEntity shadowCreature = new LivingGameEntity("ShadowCreature");
            shadowCreature.AddCustomStyling("shadowCreature");
            shadowCreature.SetParentStage(Stage.CurrentStage);
            Stage.CurrentStage.AddLivingGameEntity(shadowCreature);
            shadowCreature.SetPosition(x, y);

            ArtificialIntelligence creatureAI = new ArtificialIntelligence();
            creatureAI.SetMovementThoughtPattern(customCreatureThoughtPattern);
            shadowCreature.SetAI(creatureAI);
        }