StartRight.emam 405 Bytes
Newer Older
Bernhard Rumpe's avatar
BR-sy    
Bernhard Rumpe committed
1
/* (c) https://github.com/MontiCore/monticore */
Jean-Marc Ronck's avatar
Jean-Marc Ronck committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package de.rwth.pacman.heithoff2.BFS;

component StartRight{
    ports
        in Q(-1m: 19m) pacManX,
        in Q(0m: 22m) pacManY,
        out Q(-1m: 19m) startX,
        out Q(0m: 22m) startY,
        out Z startD;
        
    implementation Math {
        startX = round(pacManX + 0.51); 
        startY = round(pacManY);
        startD = 3;
    }
Bernhard Rumpe's avatar
BR-sy    
Bernhard Rumpe committed
17
}