Bot (class)

class Bot(name)

This is a class with no other purpose but being an example and for testing.

Second paragraph just to show off:

  • One
  • Two

As for the HTML elements, template has a limited support for transforming them into bold and italic elements.

Arguments:
  • name (string) – Unique name for the bot
Author:

Juha Mustonen

var android = new Bot("Android");
android.speak();
// Extend bot
subapp = new Bot;
subapp.prototype.walk = function(direction) {
  // ...
};
Bot.talk()

This function really does the thing.

var bot = new Bot('bot');
bot.talk({x:123, y:2});
Bot.walk(direction)
Arguments:
  • direction (Direction) – X and Y coordiates

This function really does the thing.

var bot = new Bot('bot');
bot.walk({x:123, y:2});