~ubuntu-branches/ubuntu/wily/gargoyle-free/wily-proposed

« back to all changes in this revision

Viewing changes to tads/tads3/test/data/kf_sample5.t

  • Committer: Bazaar Package Importer
  • Author(s): Sylvain Beucler
  • Date: 2009-09-11 20:09:43 UTC
  • Revision ID: james.westby@ubuntu.com-20090911200943-idgzoyupq6650zpn
Tags: upstream-2009-08-25
ImportĀ upstreamĀ versionĀ 2009-08-25

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *   Copyright (c) 2000, 2002 Michael J. Roberts.  Permission is
 
3
 *   granted to anyone to copy and use this file for any purpose.  
 
4
 *   
 
5
 *   This is a starter TADS 3 source file.  This is a complete TADS 3
 
6
 *   program that you can compile and run.
 
7
 *   
 
8
 *   To compile this game in TADS Workbench, open the "Build" menu and
 
9
 *   select "Compile for Debugging."  To run the game, after compiling it,
 
10
 *   open the "Debug" menu and select "Go."
 
11
 *   
 
12
 *   This is the "introductory" starter program; it provides an example of
 
13
 *   how to set up a T3 program.  
 
14
 */
 
15
 
 
16
/* include the TADS and T3 system headers */
 
17
#include <tads.h>
 
18
#include <t3.h>
 
19
 
 
20
/*
 
21
 *   Main program body.  Note that _main() is the true entrypoint into the
 
22
 *   program, but _main() calls this routine as soon as it has completed
 
23
 *   some set-up operations.  preinit() will always be called (either
 
24
 *   during the original compilation, or at program startup, depending on
 
25
 *   the compilation mode) before this routine is called.  
 
26
 */
 
27
main(args)
 
28
{
 
29
    /* show the VM banner and a blank line */
 
30
    tadsSay(t3GetVMBanner()); "\b";
 
31
 
 
32
    local lst = global.getPropList();
 
33
}
 
34
 
 
35
global: object {}
 
36
 
 
37
myObject: object {}
 
38
 
 
39
 
 
40
modify global
 
41
{
 
42
    doMethod1() { return nil; }
 
43
    doMethod2() { return nil; }
 
44
}
 
45
 
 
46
modify global
 
47
{
 
48
    doMethod3() { return nil; }
 
49
}
 
50