Exemple #1
0
 public TAActor(TAServer server, TAScene scene)
 {
     awake        = true;
     this.server  = server;
     currentScene = scene;
     new Thread(tickLoop).Start();
 }
Exemple #2
0
        public TAScene createScenes()
        {
            startScene = new TAScene("Jail Cell", TACoordinateSystem.startlocation);
            startScene.sceneDescription = @"A cold, damp cell. A weak ray of pale light slips through a tiny window high on the back wall,
                and the cracks in the floor are caked with age old dust. An incessant dripping can be heard from somewhere down the hall.";
            var hallwayScene = new TAScene("Hallway");

            hallwayScene.sceneDescription = @"The hallway seems as though it has not been walked in years, as if just disturbing a speck of dust will anger sleeping ghosts.";
            startScene.connectScene(hallwayScene, new TASceneConnection(startScene, hallwayScene, "Hallway Door", "Jail Cell Door"));
            return(startScene);
        }
 public void connectScene(TAScene other, TASceneConnection connection)
 {
     connections.Add(connection);
     other.connections.Add(connection);
 }