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

component StartTop{
    ports
        in Q(0m: 20m) pacManX,
        in Q(0m: 23m) pacManY,
        out Q(0m: 20m) startX,
        out Q(0m: 23m) startY,
        out Z startD;
        
    implementation Math {
        startX = round(pacManX);
        startY = round(pacManY - 0.51);
        startD = 0;
    }
Bernhard Rumpe's avatar
BR-sy    
Bernhard Rumpe committed
17
}