Chapter 5: MACHINATIONS

Slides:



Advertisements
Similar presentations
UML State chart/machine diagram State machine diagram is a behavior diagram which shows discrete behavior of a part of designed system through finite state.
Advertisements

Decision Analysis Tools in Excel
Lecture 8 Model Builder.
De la Rosa-Pohl ECE 1100 Introduction to Engineering Intro to LabVIEW: Programming for Symon University of Houston Diana de la Rosa-Pohl Len Trombetta.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
CS320n –Visual Programming LabVIEW Foundations. Visual ProgrammingLabVIEW Foundations2 What We Will Do Today Hand back and review the midterm Look at.
Automating Tasks With Macros
Automating Tasks With Macros. 2 Design a switchboard and dialog box for a graphical user interface Database developers interact directly with Access.
Component and Deployment Diagrams
Unified Modeling Language
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
LabVIEW an Introduction
1 Chapter No 3 ICT IN Science,Maths,Modeling, Simulation.
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 8: Modelling Interactions and Behaviour.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
程建群 博士(Dr. Jason Cheng) 年03月
Java Programming, 3e Concepts and Techniques Chapter 3 Section 65 – Manipulating Data Using Methods – Java Applet.
BIM211 – Visual Programming Objects, Collections, and Events 1.
Fundamentals of Game Design, 2 nd Edition by Ernest Adams Chapter 10: Core Mechanics.
Object-Oriented Modeling Using UML CS 3331 Section 2.3 of Jia 2003.
1 Extend is a simulation tool to create models quickly, with all the blocks you need and without even having to type an equation. You can use a series.
Activity diagrams. Introduction ● Activity diagrams are a behavioural model that represent the dynamics of the system. ● An activity diagram is essentially.
Chapter Two Creating a First Project in Visual Basic.
7 Systems Analysis and Design in a Changing World, Fifth Edition.
1 Kyung Hee University Statecharts Spring Kyung Hee University Specifying Objects’ Behaviour  Interaction diagrams show message-passing behaviour.
An Introduction to Designing, Executing and Sharing Workflows with Taverna Katy Wolstencroft myGrid University of Manchester IMPACT/Taverna Hackathon 2011.
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
Object Oriented Analysis & Design & UML (Unified Modeling Language)1 Part VI: Design Continuous Activity Diagams State Diagrams.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Interaction Diagram An interaction diagram is a graphical representation of interactions between objects. Sequence diagram: shows the sequence in which.
Fundamentals of Game Design, 2 nd Edition by Ernest Adams Chapter 18: Construction and Management Simulations.
 Advancing from moving premade primitives to making our own models  Two different approaches: ◦ Direct mesh editing: A more traditional approach commonly.
CSE 110: Programming Language I Matin Saad Abdullah UB 404.
Chapter 14 Part 1: Core Game Mechanics By Nolan Driessen.
1 Team Skill 3 Defining the System Part 1: Use Case Modeling Noureddine Abbadeni Al-Ain University of Science and Technology College of Engineering and.
Cliquez pour modifier le style du titre Cliquez pour modifier les styles du texte du masque Deuxième niveau Troisième niveau Quatrième niveau Cinquième.
Finite State Machines ENGR 110 #7 2016
Method – Notation 8 Hours.
FOP: Multi-Screen Apps
Dive Into® Visual Basic 2010 Express
Systems Analysis and Design in a Changing World, Fourth Edition
Business Process and Functional Modeling
Visual Basic 2010 How to Program
Welcome! Workshop 3 of 7.
CHAPTER
Designing and Developing Games
Lesson 6: Enhancing Presentations
Clocks A clock is a free-running signal with a cycle time.
Unified Modeling Language
Kodu Game Lab Shaw STEM Lab-2016.
EET 2259 Unit 3 Editing and Debugging VIs
Introduction to Events
Using Visual Studio with C#
Chap 7. Building Java Graphical User Interfaces
UML dynamic Modeling (Behavior Diagram)
Graphical User Interfaces -- Introduction
Software Engineering Chapter 5 (Part 3) System Modeling Dr.Doaa Sami.
UNITY TEAM PROJECT TOPICS: [1]. Unity Collaborate
Week 12: Activity & Sequence Diagrams
Unit 11 – PowerPoint Interaction
EET 2259 Unit 6 Shift Registers
Use Case Model Use case diagram – Part 2.
Web Development Using ASP .NET
Chapter 14 Part 1: Core Game Mechanics By Nolan Driessen
Using Animation and Multimedia
MECH 3550 : Simulation & Visualization
ECE 352 Digital System Fundamentals
EET 2259 Unit 6 Shift Registers
How to install and manage exchange server 2010 OP Saklani.
Presentation transcript:

Chapter 5: MACHINATIONS Hamzah Asyrani Sulaiman

Machinations is more than just a visual language for creating diagrams, however. Dormans has built an online tool for drawing the diagrams and simulating them in real time. With it, you can construct and save Machinations diagrams easily, and you can also study the behavior of your internal economy. You can find the tool at www.jorisdormans.nl/machinations.

The Machinations Framework

Machinations Diagram Basic Elements

Pools and Resources The most basic node type in a Machinations diagram is the pool. A pool is a location in the diagram where resources gather. Pools are represented as open circles, while the resources that are stored in a pool are represented as smaller, colored circles that stack on them (Figure 5.2).

Resource Connections Individual resources can move from node to node through a Machinations diagram along resource connections that are represented as solid arrows connecting the nodes of the diagram (Figure 5.3).

INPUTS, OUTPUTS, SOURCES, AND TARGETS

Activation Modes A node can fire automatically, which means it simply fires every iteration. All automatic nodes fire simultaneously. A node can be interactive, which means it represents a player action and fires in response to that action. In a digital version of a Machinations diagram, interactive nodes fire after the user clicks them. A node can be a starting action, which means that it fires only once, before the first iteration. In the Machinations Tool, starting actions fire immediately after the user clicks the run button. A node can be passive, which means it can fire only in response to a trigger generated by another element (we discuss triggers shortly).

Activation Modes

Pulling and Pushing Resources When a pool fires, it will try to pull resources through any inputs connected to it. The number of resources it pulls is determined by the rate of the individual input resource connection—the number beside the line. Alternatively, a pool can be set in push mode. In this mode, when the pool fires, it pushes resources along its output connections.

Pulling and Pushing Resources

Time Modes Games can handle time in different ways. Board games are often turn-based, while in many video games the game is active even if the player doesn’t do anything. To represent different types of games, a Machinations diagram can operate in one of three different time modes:

Time Modes Games can handle time in different ways. Board games are often turn-based, while in many video games the game is active even if the player doesn’t do anything. To represent different types of games, a Machinations diagram can operate in one of three different time modes:

Time Modes Games can handle time in different ways. Board games are often turn-based, while in many video games the game is active even if the player doesn’t do anything. To represent different types of games, a Machinations diagram can operate in one of three different time modes:

State Changes LABEL MODIFIERS

State Changes NODE MODIFIERS

State Changes NODE MODIFIERS

State Changes TRIGGERS

State Changes ACTIVATORS For example, in the board game Caylus, players place their laborers (a resource) at particular buildings on the board to enable them to execute special actions associated with that building. For example, a player might place a laborer at a gold mine to collect gold (Figure 5.15).

Advanced Node Types

Gates In contrast to a pool, a gate does not collect resources. Instead, it immediately redistributes them. Gates are represented as diamond shapes that often have multiple outputs (Figure 5.16).

Gates In contrast to a pool, a gate does not collect resources. Instead, it immediately redistributes them. Gates are represented as diamond shapes that often have multiple outputs (Figure 5.16).

Sources Sources are nodes that create resources. They are represented as a triangle pointing upward (Figure 5.18). Any node in a Machinations diagram can be automatic (the default), interactive, or passive, or it can activate once before a diagram starts.

Sources

Drains Drains are nodes that consume resources; a resource that goes into a drain disappears permanently. The Machinations framework includes a special drain node represented as a triangle pointing downward (Figure 5.19).

Converters Converters convert one resource into another. They are represented as a triangle pointing to the right with a vertical line through it (Figure 5.20). Converters are designed to model things like factories that turn raw materials into finished products. A windmill, for example, turns wheat into flour. Converters act exactly as a drain that triggers a source, consuming one resource to produce another.

Converters Converters convert one resource into another. They are represented as a triangle pointing to the right with a vertical line through it (Figure 5.20). Converters are designed to model things like factories that turn raw materials into finished products. A windmill, for example, turns wheat into flour. Converters act exactly as a drain that triggers a source, consuming one resource to produce another.

Traders Traders are nodes that cause resources to change ownership when fired: Two players could use a trader to exchange resources. Machinations diagrams represent a trader as a vertical line over two triangles that point left and right (Figure 5.22).

End Conditions Games end when certain conditions are fulfilled. Sometimes they end when a player reaches a certain goal or when time runs out or when all players but one are eliminated. Machinations diagrams use end conditions to specify end states.

Modeling Pac-Man

Resources Dots Power Pills Fruits Lives Ghosts Threat POints

Dots

The Fruit Mechanism

Ghosts Produce Threat

Capture and loss of life

Power Pills The last mechanism to be added to the diagram is the mechanism that allows players to eat the ghosts by eating power pills. Figure 5.28 adds this mechanism (light blue) to the diagram and represents the full game. Power pills start as a limited supply. The player can choose to use them by clicking the Eat Power Pill converter to convert a power pill into power-up time, an abstract resource that is automatically drained.

The Complete Diagram

In this chapter, we described the Machinations framework in some detail. Machinations diagrams consist of nodes that perform functions on resources. The most basic type of node is the pool, which stores resources. Nodes are joined to each other by arrows called resource connections, which govern where, when, and how many resources travel from one node to another. State connections, shown as a dotted arrow, permit the operation of the mechanics to change the behavior of resource connections and the number of items in a pool and to trigger (or inhibit) events. Summary

Exercises

Exercises

Exercises